删除main.storyboard之后要做的三件事

1.删除info.plist文件中 Main storyboard file base name项
该项用于引导程序打开Main的 storyboard 文件

2.在appdelegate中,
application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 函数创建window,即
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

3.在appdelegate中,
application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 函数�中,显示window
[self.window makeKeyAndVisible]; //显示窗口

你可能感兴趣的:(删除main.storyboard之后要做的三件事)