Home > other >  UIKit is initial view controller does not work
UIKit is initial view controller does not work

Time:10-07

I recently updated to xCode 13 on my M1 macbook.

I am following this apple tutorial: enter image description here

I tried to run the app without checking the checbox, but it only shows a black screen. enter image description here

CodePudding user response:

You see nothing because the table is empty. (In iOS 15, an empty table is truly empty.)

You have put a table view controller in your storyboard, but there also needs to be some code. In particular, there needs to be a UITableViewController subclass with some code to populate the table — and (most important) the table view controller in the storyboard needs to have its class set to be that UITableViewController subclass.

But you have not (yet) performed those steps.

  • Related