iOS开发实训第九周周报
学习知识点归纳
1. 页面跳转的方式
(1)UITableBarController(标签栏控制器)中的界面跳转
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
//创建标签栏控制器tabBarController
UITabBarController *tabBarController = [[UITabBarController alloc] init];
//初始化firstView和secondView
FirstViewController *firstView = [[FirstViewController alloc] init];
SecondViewController *secondView = [[SecondViewController alloc]init];
//添加子视图控制器firstView和secondView
[tabBarController addChildViewController:firstView];
[tabBarController addChildViewController:secondView];
//设置底部标签栏上的title
firstView.tabBarItem.title = @"first";
secondView.tabBarItem.title = @"second";
self.wind