简体   繁体   中英

iOS Simulator : Black screen with navigation bar

I have changed a bunch of UIViewControllers, added buttons and the like, and not my app won't start, not sure what I did wrong.

I get a black screen, BUT , I see the statusbar and a navigation bar.

I searched for keywords xcode/ios simulator/swift/objective-c along with black screen, but all suggestions (eg reset content, clean, deleting all schemas, adding viewDidLoad, a couple of more) were directed towards having a whole black screen and thus didn't work when I tried them.

How can I fix this?

Sounds like you have a navigation controller with no children. A navigation controller can be displayed with no children view controllers, but you'll get a black screen with a nav bar like you describe.

What does your storyboard look like?

Please try adding Story board entry point at the main story board Here is the image

Thanks, Rajat

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