Presenting a view modally
In this section, you will add a button to the collection view section header. When tapped, this button will display a view representing the Locations screen. This view will be from a new view controller scene embedded in a navigation controller, which you will add to the project. The view will be presented modally, which means you won't be able to do anything else until it is dismissed. To dismiss it, you'll add a Cancel button to the view's navigation bar. You'll also add a Done button, but you'll only implement its functionality in Chapter 17, Getting Started with JSON Files.
Let's start by adding a button from the library to the collection view section header.
Adding a button to the collection view header
As shown in the app tour in Chapter 9, Setting Up the User Interface, there is a LOCATION button at the top right-hand side of the screen. You'll add a button to represent the LOCATION button to the collection...