Map update
We have a couple of minor updates to make in order to have the Restaurant Details page show cuisines when you access that page through the Map tab. First, we need to change an identifier to ensure our app does not crash (however, we will not actually have our Map select from this updated identifier):
Open up
Map.storyboardand select the segue that connects to Select a location (the segue that has a square inside the circle) and update the Identifier under Storyboard Segue tolocationList. Then, hit Enter.Next, we need our Map to load data from the
RestaurantAPIManagerrather than from theplistfrom which it is currently loading data. In order for us to do this, we must make a few adjustments inside ourRestaurantAnnotationand ourMapDataManager:Open the
RestaurantAnnotation.swiftfile and remove the following line:if let cuisines = dict["cuisines"] as? [String] { self.cuisines = cuisines }Now, let's replace that line with the following:
if let cuisines = dict["cuisines"] as?...