UITabBarController
来源:互联网 发布:协同服务器端口 编辑:程序博客网 时间:2024/05/16 08:37
UITabBarController *tabBarController=[UITabBarController alloc]init];
self.window.rootViewController=tabBarController;
UINavigationController *nav1=[[UINavigationControlleralloc]initWithRootViewController:viewControl1];
[nav1.navigationBarsetBackgroundImage:[UIImageimageNamed:@"nav_bg_ios7"]forBarMetrics:UIBarMetricsDefault];
ViewController1*viewControl1=[[ViewController1alloc]init];
UINavigationController *nav2=[[UINavigationControlleralloc]initWithRootViewController:viewControl2];
[nav2.navigationBarsetBackgroundImage:[UIImageimageNamed:@"nav_bg_ios7"]forBarMetrics:UIBarMetricsDefault];
ViewController2*viewControl2=[[ViewController2alloc]init];
tabBarController.viewControllers=@[nav1,nav2];
tabBarControl.delegate=self;
//配置标签栏背景图片
tabBarControl.tabBar.backgroundImage=[UIImageimageNamed:@"nav_bg"];
//more页面配置
[tabBarControl.moreNavigationController.navigationBarsetBackgroundImage:[UIImageimageNamed:@"nav_bg_ios7"] forBarMetrics:UIBarMetricsDefault];
代码连接:
- UITabbarController
- UITabBarController
- UITabBarController
- UITabBarController
- UITabBarController
- UITabBarController
- UITabbarController
- UITabBarController
- UITabBarController
- UITabBarController
- UITabbarController
- UITabBarController
- UITabBarController
- UITabBarController
- UITabBarController
- UITabBarController
- UITabBarController
- UITabBarController
- 设备驱动模型 前言
- 大数据可视化工具点评
- redis常见命令
- tcp协议详解
- poj3468 A Simple Problem with Integers,成段更新
- UITabBarController
- sdfsdf
- redis架构设计
- CUGB图论专场2:E - Drainage Ditches 最大流EK算法与Dinic算法
- Tomcat点击startup.bat不能启动(窗口一闪即过)
- 怎样让Oracle支持中文? 语言_地域.字符集
- Java测试
- Android菜鸟的成长笔记(12)——Handler、Loop、MessageQueue
- c#——循环的中断