Location list

Let's review how our app will work. A user will select a cuisine and location. Then, the location will be passed to the Explore View. The user will get restaurants from the selected location filtered by the selected cuisine.

If this were online, we would pass the location to the API, and the API would return the JSON data. As you can see, we are doing the same. When you eventually deal with an API, the transition of working with online data will be seamless.

Selecting a location

Therefore, as stated earlier, in order to get data, we need a location. In order to get the location, we need to get it from the LocationViewController. When a location is selected, we will show a checkmark. We will need this checkmark to update each time a ...

Get iOS 10 Programming for Beginners 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.