From the course: Swift: Delegations and Data Sources

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Model

Model

From the course: Swift: Delegations and Data Sources

Start my 1-month free trial

Model

- [Instructor] A term heard often when working with Xcode is MVC. MVC stands for model-view-controller. It's not an exclusive term to Xcode projects. It's a pattern of programming, a good organization of any program or application in a graphics-rich environment, and arguably any environment that interacts with a user. MVC separates the major parts of an application. Why is it important? With model-view-controller, you only change one part completely, the view, and possibly some of the controller. The code handling your data never changes between the versions, saving a lot of time and effort. The parts of our program that deal with information we want to process is called the model. A pizza shop ordering system has a list of data giving us information about each person's order. There may be other links to that data with more data about each customer and about each pizza. In the pizza ordering system, this is our model, the collection of all the data we will use in the ordering system…

Contents