Could not find a storyboard named 'MainStoryboard'

Could not find a storyboard named ‘MainStoryboard‘

查看Supporting Files--->Info.plist-->main storyboard file base name为什么

把UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];里面的name改为正确的即可

Could not find a storyboard named 'MainStoryboard'

时间: 2024-10-10 11:10:53

Could not find a storyboard named 'MainStoryboard'的相关文章

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

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

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

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

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

转换到 StoryBoard 的发布说明(Converting to Storyboards Release Notes)

转换到 StoryBoard 的发布说明(Converting to Storyboards Release Notes) Storyboarding is a new way to create user interfaces for iOS applications, beginning with iOS 5 and Xcode 4.2. Using storyboards, you can design the view controllers that compose your appl

怎样在xcode中使用storyboard

StoryBoard是iOS 5的新特征,目的是取代历史悠久的NIB/XIB,对于已经习惯了xib文件的孩子们来说,StoryBoard还不是那么熟悉.经过两天的研究,有了一些心得,在此分享. 一.怎样使用storyboard简单实现Push页面,过程例如以下: 1.创建一个带有storyboard的singleview application应用程序如图. 创建好的应用程序已经自己主动创建好了一个和MainStoryboard连接好的ViewController. 2.在MainStorybo

删除storyboard后需要进行设置

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

Differences Between Xcode Project Templates for iOS Apps

Differences Between Xcode Project Templates for iOS Apps When you create a new iOS app project in Xcode, you get to choose between several project templates, from the aptly named “Empty Application” to specialized things like an “OpenGL Game”. I noti

ios开发之Swift新手入门

1.关于swift和调试,swift在ios7.0才支持,ios8.3系统的真机必需要xcode6.3才干调试.安装xcode6.3需要os x 10.10以上 2.应用程序由Main.storyboard启动和设置,定义先启动哪个ViewController 3.组件有两种方式实例化.一种是直接在代码里面new出来.第二种是代码里面定义.然后在storyboard视图界面把组件加入进去.注意组件加入进去之后要进行关联. 4.注意在Build Phasses里面不能缺失Main.storyboa

控制器创建方式

三种创建方式: 1.通过代码创建(个人建议:虽然代码创建繁琐,但是还是觉得代码才是王道) 2.通过xib创建: 优点:能够用拖控件的方式来描述一个View里面的情况 缺点:和storyboard相比需要在File's Owner的Class属性中设置所属自定义控制器,并且要设置控制器所属View(连线) 3.通过storyboard创建 优点:能够用拖控件的方式来描述一个View里面的情况,如果设置了storyboard为Mainstoryboard的话,就可以免去代码创建Window等的步骤,