首页 > 代码库 > Could not find a storyboard named 'Main' in bundle NSBundle </Users/tianxiao/

Could not find a storyboard named 'Main' in bundle NSBundle </Users/tianxiao/

 

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]];