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

 

posted on 2014-08-05 21:14  我靠是时候那个了  阅读(261)  评论(0编辑  收藏  举报