代码拉取完成,页面将自动刷新
not support landscape
Copy YSLContainerViewController directory to your project.
Add pod 'YSLContainerViewController' to your Podfile.
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];
containerVC.menuItemFont = [UIFont fontWithName:@"Futura-Medium" size:16];
containerVC.menuItemTitleColor = [UIColor whiteColor];
containerVC.menuItemSelectedTitleColor = [UIColor redColor];
containerVC.menuIndicatorColor = [UIColor yellowColor];
containerVC.menuBackGroudColor = [UIColor purpleColor];
MIT
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。