When we set up our structure, we created a View Controller with a label that says Review
. This was done just to see the structure, but we removed the button tapping to the review controller. We currently have two buttons on our Restaurant Detail page: Add Photo
and Add Review
. Both of these buttons need to have View Controllers connected to them. Our Add Photo
hooks up to a View Controller where we launch the user's camera and our Add Review
hooks up to a static tableview
.
Let's work on the Add Photo
button first:
- Open the
Main.storyboard
and find the View Controller that has the labelReviews
and delete the label. - Select the View Controller, then navigate to
Editor
|Embed In
|Navigation Controller
. This View Controller will now be our Photo Filter View Controller. - In the Restaurant Detail View, find the Table View Cell that contains the
Add Photo
label and button. - Open up the disclosure arrows and Ctrl + drag from the button that we placed inside the container...