One of the benefits of embedding a view controller in a navigation controller is the navigation bar at the top of the screen. You can place buttons on its left- and right-hand sides.
Follow these steps to add the Cancel and Done buttons to the navigation bar:
- Click the Navigation Item in the View Controller Scene. Then, click the Object library button:
- Type bar b into the filter field and drag two Bar Button Item objects to each side of the navigation bar:
- Click the Item button on ...