简体   繁体   中英

How to solve "blank screen" when I running App at Xcode?

I am new to iOS development. I followed the tutorial on Apple's official website to learn, and the URL is below:

https://developer.apple.com/tutorials/app-dev-training/creating-a-storyboard-app

Description:

However, when I run the app, the app's screen is always blank. I am pretty sure I followed by the official tutorial step by step. 在此处输入图像描述

What I have tried:

  1. Check the mark of "is Initial view controller" at Main.storyboard

  2. Cancel the mark of "is Initial view controller" at Launch.storyboard (if I did not cancel the mark, the label "I am a label" of Launch.storyboard will show up for one second and then come up a blank screen.)

  3. Delete the view controller and add a new one.

  4. I check the Info, it seems fine.

在此处输入图像描述 在此处输入图像描述 在此处输入图像描述 My Environment:

Xcode: 13.1

Simulator: iOS15

Simulator: iPhone 12 Pro

Looking forward for response, and thank you~

Please check dark mode of simulator OR try to change colors... You can also check it in view Hierarchy if the view has that label or not Here is Apple doc to check view Hierarchies

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