码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2014-11-24 11:31:34      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   ar   os   使用   sp   on   

1、在最新的Xcode6.0之后新建项目默认的是使用Main.storyboard,有些人习惯用storyboard有些人不习惯使用,当我们新建项目删除storyboard时我们运行项目发现会报错:Could not find a storyboard named ‘Main‘ in bundle NSBundle,这是因为我们把storyboard删除了,而storyboard相对的路径没有删除

bubuko.com,布布扣

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

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

 

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

标签:style   blog   http   io   ar   os   使用   sp   on   

原文地址:http://www.cnblogs.com/anyezhuixing/p/4118087.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!