Could not find a storyboard named 'Main' in bundle NSBundle
来源:互联网 发布:qsv格式转换器mac版 编辑:程序博客网 时间:2024/05/21 06:34
1、删掉工程中main.storyboard 后要删除plist文件中对应的键值,否则会报如下错误: Could not find a storyboard named ‘Main’ in bundle NSBundle
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;}
0 0
- Could not find a storyboard named 'Main' in bundle NSBundle
- Could not find a storyboard named 'Main' in bundle NSBundle
- Could not find a storyboard named 'Main' in bundle NSBundle
- 'Could not find a storyboard named 'Main' in bundle NSBundle ***
- Could not find a storyboard named 'Main' in bundle NSBundle
- Could not find a storyboard named 'Main' in bundle NSBundle
- Could not find a storyboard named 'Main' in bundle NSBundle
- Could not find a storyboard named 'main' in bundle NSBundle
- Could not find a storyboard named 'Main' in bundle NSBundle?
- 删除storyboard之后出现Could not find a storyboard named 'Main' in bundle NSBundle这种现象
- Could not find a storyboard named 'MainStoryBoard' in bundle NSBundle
- 错题集---Could not find a storyboard named 'main' in bundle NSBundle
- Wrong02-Could not find a storyboard named‘Main’in bundle NSBundle
- iOS开发-Could not find a storyboard named 'Main' in bundle NSBundle
- Could not find a storyboard named 'Main' in bundle NSBundle </Users/liuyuhang/Library/Developer/Core
- Could not find a storyboard named 'Main' in bundle
- 解决Could not find a storyboard named 'MainStoryBoard' in bundle NSBundle
- “Could not find a storyboard named 'MainStoryboard' in bundle NSBundle” 的问题。
- test
- POJ 1365 Prime Land(接收数据)
- WindowManager service
- GDB watch if var !=value
- POJ-3292-Semi-prime H-numbers-数筛法
- Could not find a storyboard named 'Main' in bundle NSBundle
- [算法学习]后缀表达式转二叉树
- 字符编码的历史演变
- 7.Tachyon命令行使用
- 微信APP支付填坑记
- 51nod 1487:占领资源 很好玩很痛苦
- 点击<a>标签,禁止页面自动跳到顶部的解决办法
- [算法学习]树的广度遍历
- POJ 1860 Currency Exchange(bellman变形)