iPhone app: storyboard scene with tableViewController AND button

I thought that setting up a storyboard scene with a table view controller AND a button would be straightforward, but the button is never visible.

I think I'm missing some basic conceptual understanding here.

I've seen a mention that iPhone scenes should(/must?) have only one view.

Perhaps that's why the storyboard isn't showing the button?

You have probably defined as UITableViewController.

Hence, the table uses the full view and hides your button.

You should:

  • create a UIViewController
  • Add a TableView inside
  • add a button, for instance below the table.
  • set constraints as needed (tableView relative to Safe Area)

iPhone app: storyboard scene with tableViewController AND button
 
 
Q