Summary

In this chapter, you set up the outlets for the Restaurant Detail screen in RestaurantDetailViewController. Next, you added methods to viewDidLoad() to populate the table view when the Restaurant Detail screen is displayed. Finally, you passed the appropriate RestaurantItem instance from RestaurantListViewController and MapViewController to RestaurantDetailViewController. RestaurantDetailViewController now displays data from that RestaurantItem on the Restaurant Detail screen.

By doing this, you have learned how to make table views with static cells display data, as well as how to create a custom map image, which you can now implement in your own apps.

Congratulations! All the screens in your app now display data. However, if you ...

Get iOS 13 Programming for Beginners - Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.