Xcode runs app show blank screen

Description:

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)

However, when I run the app, the app's screen is always blank. I'm 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 didn't cancle the mark, the label "Im 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:

  1. Xcode: 13.1
  2. Simulator: ios15
  3. Simulator: iphone 12 pro

Looking forward for response, and thank you~

Launch.storyboard

  • Should definitely not be your Initial View Controller
  • This is shown very briefly on app launch, while the app's initial view is prepared

Table View Controller

  • In Main.Storyboard, this is your Initial View Controller
  • If it is showing as a blank screen, then that is down to your code
  • e.g. the Table View has no rows, or the row content is empty

If you share the code for your Table View Controller, it should be possible to see the problem.

Xcode runs app show blank screen
 
 
Q