更新xcode,报错*** Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3505.16/UIApplication.m:3294
在Info.plist中,可以找到:“Main storyboard file base name” String “Main”,删掉这个条目, 再启动,屏幕变成了黑屏
手动添加window
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; //全屏window
self.window.backgroundColor = [UIColor whiteColor]; //白色背景
[self.window makeKeyAndVisible]; //
return YES;
}
ok,这个由于更新xcode7报错已解决!
----iOS研究院 qq群:305044955
2 个解决方案
#1
ios9适配https://github.com/ChenYilong/iOS9AdaptationTips
#2
楼主知道什么原因吗?为什么要加一个空的VC?
#1
ios9适配https://github.com/ChenYilong/iOS9AdaptationTips
#2
楼主知道什么原因吗?为什么要加一个空的VC?