Chapter 13
Implementing the Content Controller
In This Chapter
Working with custom view controllers
Using the Trip
model to get data for the view
With the model in place, you can now return to the Content view controller that you add in Chapter 11 and transform its view into the user interface you fell in love with in Chapter 4. In this chapter, you replace the “generic” UIViewController
or UITableViewController
supplied by the storyboard with a custom view controller. By doing so, you add the logic to connect the view to the model.
Using Custom View Controllers
The view controller provided by the storyboard is a UIViewController
and is clueless about what you want to display in a view, much less the model it will need to get the data from. In this section, you create ...
Get iPhone® Application Development For Dummies®, 4th Edition 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.