Could not find a storyboard named 'Main' in bundle NSBundle
2016-02-18 13:33
537 查看
1、删掉工程中main.storyboard 后要删除plist文件中对应的键值,否则会报如下错误: Could not find a storyboard named ‘Main’ in bundle NSBundle
2、删除main.storyboard后,需要在AppDelegate.m中初始化一个window进行使用,否则应用程序没有window可用。
2、删除main.storyboard后,需要在AppDelegate.m中初始化一个window进行使用,否则应用程序没有window可用。
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. //设置主界面 self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; MainViewController *mainVC = [[MainViewController alloc] init]; self.window.rootViewController = mainVC; self.window.backgroundColor = [UIColor yellowColor]; [self.window makeKeyAndVisible]; return YES; }
相关文章推荐
- Win10 UWP开发系列:实现Master/Detail布局
- 假设将synthesize省略,语义特性声明为assign retain copy时,自己实现setter和getter方法
- RabbitMQ消息队列(一): Detailed Introduction 详细介绍
- XSS过滤器Bypass的一些姿势 - xiaix
- Foxmail:完美配置QQ邮箱、163邮箱、Google邮箱
- 454 4.7.0 Temporary authentication failure(临时认证失败)
- 人工智能机器学习统计学数据挖掘之间有什么区别?
- 服务启动报错
- 1086. Tree Traversals Again (25)
- 【Aizu 2305】Beautiful Currency
- Stainless steel wire functions
- AIM Tech Round (Div. 2) C. Graph and String
- ultraiso制作win7系统安装盘
- WAMP Version 2.5 Version Française
- WAMP Version 2.2 Version Française
- wamp Version 2.1 Version Française
- windows多线程同步机制---可等候定时器
- 172. Factorial Trailing Zeroes详细解答
- 【动态规划】【数位DP】[2015 Multi-University Training Contest 7]Gray Code
- Grails自动化测试