Our app is coming together nicely, but we have one more section to do before we can start adding features. We have data in all of our views, except for in our restaurant detail view. In the last chapter, we passed data using segues, and we are going to do this again in this chapter. We have a few other things in this view that we need to set up before we move on to some of the features of the app.
In this chapter, we will cover the following topics:
- Passing data using segues
- Connecting IBOutlet to display data
- Displaying one annotation in a map view
Let's set up our RestaurantDetailViewController by adding the following:
- Add the following variables after the class declaration and before the selectedRestaurant variable:
// Nav Bar
@IBOutlet weak var btnHeart:UIBarButtonItem!
// Cell One
@IBOutlet weak var lblName:UILabel...