首页 > 其他 > 详细

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

时间:2014-07-16 20:43:08      阅读:355      评论:0      收藏:0      [点我收藏+]

1、删掉工程中main.storyboard 后要删除plist文件中对应的键值,否则会报如下错误: Could not find a storyboard named ‘Main‘ in bundle NSBundle

bubuko.com,布布扣

2、删除main.storyboard后,需要在AppDelegate.m中初始化一个window进行使用,否则应用程序没有window可用。

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

 

bubuko.com,布布扣

Could not find a storyboard named 'Main' in bundle NSBundle,布布扣,bubuko.com

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

原文:http://www.cnblogs.com/ygm900/p/3836580.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!