3 Star 0 Fork 0

Gitee 极速下载 / YSLContainerViewController

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/y-hryk/YSLContainerViewController
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

YSLContainerViewController

Demo

Dome

Requirement

not support landscape

Install

Manually

Copy YSLContainerViewController directory to your project.

CocoaPods

Add pod 'YSLContainerViewController' to your Podfile.

Usage

UIViewController *vc1 = [[UIViewController alloc]init];
vc1.title = @"vc1";
UIViewController *vc2 = [[UIViewController alloc]init];
vc2.title = @"vc2";
UIViewController *vc3 = [[UIViewController alloc]init];
vc3.title = @"vc3";
UIViewController *vc4 = [[UIViewController alloc]init];
vc4.title = @"vc4";

float statusHeight = [[UIApplication sharedApplication] statusBarFrame].size.height;
float navigationHeight = self.navigationController.navigationBar.frame.size.height;

YSLContainerViewController *containerVC = [[YSLContainerViewController alloc]initWithControllers:@[vc1,vc2,vc3,vc4]
                                                                                    topBarHeight:statusHeight + navigationHeight
                                                                            parentViewController:self];
[self.view addSubview:containerVC.view];

Property

containerVC.menuItemFont = [UIFont fontWithName:@"Futura-Medium" size:16];
containerVC.menuItemTitleColor = [UIColor whiteColor];
containerVC.menuItemSelectedTitleColor = [UIColor redColor];
containerVC.menuIndicatorColor = [UIColor yellowColor];
containerVC.menuBackGroudColor = [UIColor purpleColor];

Licence

MIT

The MIT License (MIT) Copyright (c) 2015 y-hryk Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

YSLContainerViewController 是一个滚动视图控制器 展开 收起
Objective-C
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Objective-C
1
https://gitee.com/mirrors/YSLContainerViewController.git
git@gitee.com:mirrors/YSLContainerViewController.git
mirrors
YSLContainerViewController
YSLContainerViewController
master

搜索帮助