Presenting the Restaurant List screen

To display the Restaurant List screen when a cell in the Explore screen is tapped, go through the following steps.

  1. Click Explore View Controller Scene in the document outline. Hold down Ctrl and drag from the exploreCell in the document outline to the Restaurant List View Controller scene:

  1. The Segue menu will appear. Choose Show from the menu. This makes the Restaurant List screen slide in from the right when the exploreCell is tapped and will display a <Back button in the navigation bar:


  1. Build and run the app. In the Explore screen, tap a cell. You should see the Restaurant List screen appear with a collection view containing a single cell inside it. Tapping the <Back button in the navigation bar will dismiss the Restaurant List screen:

  1. Eventually, this collection view will display a list of restaurants at a particular location, as shown in the app tour in Chapter 9, Setting Up the Basic Structure.

Great! The next thing you need to do is add a view controller scene to represent the Restaurant Detail screen. This screen will be displayed when a cell in the Restaurant List screen is tapped. You'll do this in the next section.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.169.94