Applications are expected to have a root view controller at the end of application launch

后端 未结 30 1778
野的像风
野的像风 2020-11-22 06:42

I get the following error in my console:

Applications are expected to have a root view controller at the end of application launch

30条回答
  •  一整个雨季
    2020-11-22 07:28

    i got this problems too. i got my project run in xcode4.2.1. i've read all comments up there, but no one is cool for me. after a while, i find that i commented a piece of code.

    //self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
    

    then i uncommented it. everything is ok for me. hope this would helpful for you guys.

提交回复
热议问题