Updating restaurant details
If you click on a restaurant and go to a restaurant detail page, you should see something similar to the following screenshot:
We have some Auto Layout elements that are missing. Let's fix these elements so that they appear correctly on an iPad.
Updating the header layout
First, we need to fix the header information section:
We want a gray background and the Labels to expand across the screen and the logo to be in the middle:
- Open
RestaurantDetail.storyboard
and, in theRestaurantDetailViewController
, select the View container ...
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.