Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:], /BuildRoot/Li

来源:互联网 发布:windows系统编程百度云 编辑:程序博客网 时间:2024/05/17 01:12

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)!

0 0
原创粉丝点击