Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application windows are expected to have a root view controller at the end of application launch #32

Open
pccai opened this issue Aug 12, 2016 · 1 comment

Comments

@pccai
Copy link

pccai commented Aug 12, 2016

升级xcode7后运行的时候就提示Application windows are expected to have a root view controller at the end of application launch. 在ios9+以上真机run导致闪退。

解决办法:在didFinishLaunchingWithOptions 函数后面加入 [self.window makeKeyAndVisible]; 即可

  • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    。。。。。。

    [self.window makeKeyAndVisible];
    return YES;
    }

@dsxNiubility
Copy link
Owner

你是先在xcode6跑了一次,又在xcode7跑了一次? 你说一启动就崩溃,我一直也都是9.3.2真机调试啊。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants