Setting up our static Table View
Currently, our restaurant detail is going to a dynamic Table View; we want it to go to a static Table View:
- In
Explore.storyboard
Outline view, select the Table View in theUITableViewController
we just dragged out. - In the Utilities panel, select the Attributes Inspector and change Content from Dynamic Prototypes to Static Cells. Our Table View has now changed to static cells, which means we can drag out items right into the cell.
Now that our Table View is using static cells, we can see how it works before we actually start working with it.
- In the Utilities panel, select the Object library, and in the filter field, type
label
. - Drag and drop the Label directly into any of the three Table View cells:
- Double click on the ...
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.