1、运行Xcode6 ,创建一个Single View Applicaion 工程;
2、创建好后,把工程中的Main.storyboard 和Launch Sreen.xib 删除;
3、同时到Info.plist中将上述两项(Main.stroyboard file base name 和 Launch Sreen interface file base name) 删除
4、打开工程项目属性,点击Target下面的第一项,选择General 项,向下找到 Use Asset Catalog 点击
5、弹出 对话框后, 按确定Migrate 就ok了;
2、创建好后,把工程中的Main.storyboard 和Launch Sreen.xib 删除;
3、同时到Info.plist中将上述两项(Main.stroyboard file base name 和 Launch Sreen interface file base name) 删除
4、打开工程项目属性,点击Target下面的第一项,选择General 项,向下找到 Use Asset Catalog 点击
5、弹出 对话框后, 按确定Migrate 就ok了;
6、最后,在AppDelegate的第一个方法里面,“return”语句之前,添加必要代码。代码只有3句,相当于分3步走。1.创建window;2.设置window背景;3.使window可见。
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] ;
FirstViewController *first=[[FirstViewController alloc]initWithNibName:@"FirstViewController" bundle:[NSBundle mainBundle]];
UINavigationController *nav=[[UINavigationController alloc]initWithRootViewController:first];
self.window.rootViewController=nav;
[self.window makeKeyAndVisible];