UINavigationController和UITabBarController合用。
来源:互联网 发布:淘宝如何购买凤楼信息 编辑:程序博客网 时间:2024/04/28 23:10
- FirstViewControlle *firstViewControlle = [[FirstViewControlle alloc] init];
- UINavigationController *nav1 = [[UINavigationController alloc] initWithRootViewController: firstViewControlle];
- UITabBarItem *time = [[UITabBarItem alloc] initWithTitle: @"First" image: nil tag: 0];
- nav1.tabBarItem = time;
- SecondViewController *secondViewController = [[SecondViewController alloc] init];
- UINavigationController *nav2 = [[UINavigationController alloc] initWithRootViewController: secondViewController];
- UITabBarItem *time2 = [[UITabBarItem alloc] initWithTitle: @"second" image: nil tag: 1];
- nav2.tabBarItem = time2;
- UITabBarController *tabBarController = [[UITabBarController alloc] init];
- NSArray *array = [NSArray arrayWithObjects: nav1,nav2, nil];
- tabBarController.viewControllers = array;
- [self.window addSubview: tabBarController.view];
0 0
- UINavigationController和UITabBarController合用。
- UINavigationController和UITabBarController合用
- UINavigationController和UITabBarController合用。
- UINavigationController和UITabBarController合用。
- UINavigationController和UITabBarController合用[转载比较好理解]
- 隐藏UINavigationController和UITabBarController
- UITabBarController和UINavigationController混用
- UINavigationController和UITabBarController
- UINavigationController和UITabBarController混用
- UItabBarController和UINavigationController结合使用
- UINavigationController和UITabBarController的集成
- UITabBarController 和 UINavigationController 的 popToRootViewController
- iOS 自定义UINavigationController和UITabBarController
- UINavigationController和UITabbarController内部结构解析
- UITabBarController和UINavigationController搭配使用
- UINavigationController跳转到UITabBarController和UITabBarController跳转到 UINavigationController
- UINavigationController跳转到UITabBarController和UITabBarController跳转到 UINavigationController
- UINavigationController,UITabBarController
- 图的Dijkstra算法
- 颜色空间转换
- Eclipse自动部署项目到Tomcat的webapps下的有效方法
- SGU 495 Kids and Prizes(期望)
- CocoaPods相关(二)——(转)使用CocoaPods来做iOS程序的包依赖管理
- UINavigationController和UITabBarController合用。
- 如何学习linux设备驱动
- 第7周作业2-极值计算
- c语言中可变参数中_INTSIZEOF(n)宏的解释
- zoj 1203 Swordfish prim算法
- Centos系统安装 phpredis 扩展
- 管理
- Android生成keystore证书文件及获取证书指纹的方法
- [iOS] KVO(NSKeyValueObserving)、KVC(NSKeyValueCoding)作用浅谈