Splash screen animation is not supporting with Xcode 7 GM(iOS9). App crashes with an error

北战南征 提交于 2019-12-03 08:24:46

    window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

change to


    [window setFrame:[[UIScreen mainScreen] bounds]];

It sounds like you're trying to do some networking. In iOS 9, by default, all network communication must be secure. If you are trying to do an http: request, it will fail; you must use https: (unless you switch this feature off in your Info.plist).

I had the same issue, it has been solved by removing [window makeKeyAndVisible];.

The self window needs to be set as root view controller in your didFinishLaunchingWithOptions: :
[self.window setRootViewController:navController];

For me like jonmo, this error was the result of not defining rootViewController prior to exiting didFinishLaunchingWithOptions.

Doing so resolved this issue for me.

Prior to Xcode 7, it was just a warning now it seems to be a hard stop

In my case, the solution to this error message was updating an included CocoaPods dependency called Loopback (that I believe adds an extra UIWindow to the app.)

I had the same issue, It has been solved by replacing the below line of code in Appdelegate.m

[window addSubview:viewController.view];

with

[window setRootViewController:viewController];
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!