How to do it...

  1. Create a new Xcode project with a Single View template named NavigationController.
  2. From Object library, drag a navigation controller to the storyboard, and set the entry point of the storyboard to the navigation controller.
  1. By default, the navigation controller in interface builder comes with a root view controller, which is a UITableViewController. We will use this table to display a list of dates, and when you click on one of them, it will push another view controller.
  2. Create a new view controller called MasterViewController to be the root view controller and make it extend from UITableViewController. The source code of MasterViewController should look like this:
      class MasterViewController: UITableViewController {

Get iOS Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.