Summary
You have accomplished a lot in this chapter. You started by learning about the JSON format, and you created the RestaurantDataManager
class, a data manager class that can load data from JSON files. You configured the MapViewController
class to get data from a RestaurantDataManager
instance to display a list of restaurants on the Map screen. Next, you configured the LocationViewController
class to store the location selected by the user and pass it to an ExploreViewController
instance when the Done button is tapped. After that, you configured the ExploreViewController
class to pass the selected location and cuisine to the RestaurantListViewController
instance when a type of cuisine is selected. Finally, you configured the RestaurantListViewController
class to get a list of restaurants from the RestaurantDataManager
instance and display them on the Restaurant List screen, filtered by the selected cuisine. You also created a NoDataView
class and view, which is displayed if there...