Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.30.14/UIApplication.m:3315
尝试解决方案二: Xcode7 需要所有的窗口都必须有根控制器 XCODE 7 requires that all the Windows must have a rootViewController You can use easy:
UIViewController* vc = [[UIViewController alloc]initWithNibName:nil bundle:nil];
self.window.rootViewController = vc;
It's working good if you need to use only UIWindow (for easy examples from any Tutorials - before Xcode 7)!
本文解决了一个在Xcode7中出现的问题,即所有窗口必须有根控制器。提供了一段简单的代码示例来帮助开发者快速解决问题。
4万+

被折叠的 条评论
为什么被折叠?



