简体   繁体   中英

iOS: Unknown black patch between status bar and ViewController

I have some strange issue like having a black patch between status bar and navigation view controller view. Screenshot is below, 在此处输入图片说明

Black space which is displayed by red box is the issue.

On your project find and click on Image.xcassets -> Launch Images and add the missing images.

Also another way is that the compiler will throw a warning to add the missing screens for your project, click on that warning and a popup will show to add the missing screen.

Got it. It was my mistake as navigation controller's navigation bar with black colour and forgot to hide navigation bar. Apologies for wasting your time on idiotic question.

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