[iOS入门系列]Xcode创建空模板应用
2018-07-04 本文已影响53人
程序员小福子
1、设置AppDelegate类
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
<#UIViewController#> *vc = [[<#UIViewController#> alloc] init];
self.window.rootViewController = vc;
return YES;
}
2、取消Storyboard的引用
- 选中工程名
- 选中TARGETS
- 选中General
- 在Deployment info 下找到Main Interface 去掉默认的 Main即可
![](https://img.haomeiwen.com/i854894/36036d6b23b0fa49.jpeg)