Could not find a storyboard named 'Main' in bundle NSBundle

一、删掉工程中main.storyboard 后要删除plist文件中对应的键值,不然会报以下错误: Could not find a storyboard named 'Main' in bundle NSBundlecode

二、删除main.storyboard后,须要在AppDelegate.m中初始化一个window进行使用,不然应用程序没有window可用。blog

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

 

相关文章
相关标签/搜索