© Raúl Ferrer García 2023
R. F. GarcíaiOS Architecture Patternshttps://doi.org/10.1007/978-1-4842-9069-9_2

2. MVC: Model–View–Controller

Raúl Ferrer García1  
(1)
Barcelona, Spain
 

What Is MVC?

A Little History

The Model–View–Controller (MVC) pattern was introduced by Trygve Reenskaug for the Smalltalk-76 programming language in the late 1970s. As Reenskaug wrote: https://folk.universitetetioslo.no/trygver/.

I created the Model-View-Controller pattern as an obvious solution to the general problem of giving users control over their information as seen from multiple perspectives.

In this first version, the user interacted through the View, which sent the actions to the Controller, and this, in turn, updated the Model (data) and redrew the View. The Model ...

Get iOS Architecture Patterns: MVC, MVP, MVVM, VIPER, and VIP in Swift 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.