本文共 261 字,大约阅读时间需要 1 分钟。
1、删掉工程中main.storyboard 后要删除plist文件中对应的键值,否则会报如下错误: Could not find a storyboard named 'Main' in bundle NSBundle
2、删除main.storyboard后,需要在AppDelegate.m中初始化一个window进行使用,否则应用程序没有window可用。
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
转载地址:http://wsfws.baihongyu.com/