MVC is a specification that all object-oriented programming languages should adhere to, and MVC's idea is to divide an application into three basic parts: model, view, and controller (Controller), which work together with minimal coupling to improve the scalability and maintainability of the application.
Model components: When developing iOS apps, the model components are typically common objective-c classes that can be used to hold small amounts of application state data. When you have more data on your application, consider using core data to build your model.
(for example, the name, gender, age, and number of students in our Student information management system are the specific performance of the model component)
View components: When developing iOS apps, use Interface Builder primarily to create a view component. However, most of the actual projects use code creation components, which makes it easier to modify the interface and more likely to extend the existing view components. (The most typical example is a. xib file)
Controller components: Controller components are typically used by the Objective-c class to act as. When a controller component can be a fully customized class (inheriting the NSObject subclass). However, most of the time, the controller component inherits the Uiviewcontroller base class in the Uikit framework, and can get a lot of functions by inheriting the base class.
(the small part admits to borrow others, ask for money?) Here you are. haha ^_^)
Ok! Maybe some novice or foggy drop, normal, start learning is not good understanding, and so you go back to learn, and then back to understand the pattern. Refueling O (∩_∩) o haha ~
MVC Design Patterns for IOS