Hour 8. Controllers: Integrating the Data Model with Your Code

What You’ll Learn in This Hour:

Understanding controllers in iOS and Mac OS

Working with view controllers on iOS

Working with data controllers on iOS

Looking Inside Model/View/Controller

Mac OS and iOS are built on the model/view/controller (MVC) design pattern. The concepts are simple: The model is the data, the view is the interface, and the controller mediates between those two objects. This allows the model and the interface to be independent of one another. Both need to know about the controller, but neither needs to know about the other.

This is a fairly common description of MVC. Its disadvantage is that it tends to suggest to many people that the controller object ...

Get Sams Teach Yourself Core Data for Mac® and iOS in 24 Hours 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.