Displaying Data in a Static Table View

You've come a long way. At this point, your app has data in all its screens, except for the Restaurant Detail screen. This screen is accessed either by tapping a restaurant in the Restaurant List screen or by tapping the restaurant annotation's callout bubble button in the Map screen.

In this chapter, you'll set up outlets for the user interface elements in the Restaurant Detail screen and configure RestaurantDetailViewController to manage them. Next, you'll add methods to viewDidLoad() to populate the table view when the Restaurant Detail screen is displayed. Finally, you will pass the appropriate RestaurantItem instance from RestaurantListViewController and MapViewController to RestaurantDetailViewController. RestaurantDetailViewController will then be able to display the data from that RestaurantItem instance on the Restaurant Detail screen.

By the end of this chapter, you'll have learned how to make table views with static cells display data and how to create a custom map image. By doing so, you'll be able to implement this in your own apps.

The following topics will be covered in this chapter:

  • Setting up outlets for RestaurantDetailViewController
  • Displaying data in the static table view
  • Passing data from RestaurantListViewController to RestaurantDetailViewController

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.160.43