UITabBarController
来源:互联网 发布:java date timestamp 编辑:程序博客网 时间:2024/05/16 09:44
@interface AppDelegate : UIResponder <UIApplicationDelegate>
{
UITabBarController * tabBarController;
}
2.
tabBarController = [[UITabBarControlleralloc]init];
[self.windowsetRootViewController:tabBarController];
FirstViewController * firstView = [[FirstViewControlleralloc]init];
firstView.view.backgroundColor = [UIColorredColor];
SecondViewController * secondView = [[SecondViewControlleralloc]init];
secondView.view.backgroundColor = [UIColorblackColor];
tabBarController.viewControllers = [NSArrayarrayWithObjects:firstView,secondView, nil];
UITabBar * tabBar = tabBarController.tabBar;
UITabBarItem * item1 = [tabBar.itemsobjectAtIndex:0];
UITabBarItem * item2 = [tabBar.itemsobjectAtIndex:1];
item1.title = @"item1";
item2.title = @"item2";
- UITabbarController
- UITabBarController
- UITabBarController
- UITabBarController
- UITabBarController
- UITabBarController
- UITabbarController
- UITabBarController
- UITabBarController
- UITabBarController
- UITabbarController
- UITabBarController
- UITabBarController
- UITabBarController
- UITabBarController
- UITabBarController
- UITabBarController
- UITabBarController
- Xcode中下载的iOS XX Simulator的存放目录
- C#--如何在一个函数中返回两个值(包含数组的参数)
- MySQL之alter语句用法总结
- ubuntu 环境lamp搭建
- 理想和光旅游网进高校之北航篇——学生亲口说的和光特色!
- UITabBarController
- 大型网站架构设计摘要
- WPF中使用amCharts绘制股票K线图
- sk_buff 定义及其操作
- Java中只有按值传递,没有按引用传递!
- 预集成传感器:有效降低成本和设计风险
- 韩版甜美女装超迷人不挑人穿桃粉色优雅简单大牌A字连衣裙
- onbeforeunload 事件详细介绍
- 转载 Linux网络性能调优