简体   繁体   中英

Black Screen at the start of iOS swift app

i have a problem. when i launch my app there is a black screen viewed for a seconds then the launch screen appeared.

my splash screen isn't the default one. i used view controller because my splash had an animation.

i searched for a solution, and i get this on:

Black screen before my splash screen loads iphone

but it didn't worked

any help please?

thanks

Have you selected your Launch Screen in your target's App Icons and Launch Images ?

Edit: If you don't use any launch (splash) screen or image then, a black screen is the default behaviour before loading your view controller.

在此处输入图片说明

I faced same issue but my solution is different, I've made an extension of UINavigationController to make UINavigationBar clear. So,the problem is , I was doing some R&D on that code and unknowingly put a method

open override func loadView() {
        super.loadView()

    }

and from that time, I started facing this issue.

My advice, please double check that you haven't don't something like that.

I had a custom splash screen to launch. But the Launch Screen file was pointed to Default LaunchScreen.storyboard . Replaced that with my original custom splash, the issue fixed

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM