In the MVC pattern in Cocoa touch, models and views cannot communicate, and all communications are controller-complete.
-Model: is a special object, essentially a view of the data, text field input content, button on the label is a model, not necessarily to create a model class.
-View: UIView, which is relatively easy to understand, sends a request to the controller.
-Controller: Update the view as a response to a user request to update the model's data.
The model is the data, the view is an interface, the controller is the middle of the update medium.
1, Touch mybutton time, will trigger method.
2, the view controller implements a number of delegates and data source protocol.
3. The view controller changes the view by altering the properties.
4. The model object notifies the data change by notification and KVO mechanism. (not in this case)
5. The view controller can save a model member variable and attribute, thus changing the model state. (not in this case)
Because this example does not involve a view model, the 4 and 5 processes need to be understood repeatedly.
iOS common design mode--MVC mode (iOS development)