From the course: iOS App Development: Design Patterns for Mobile Architecture

Unlock the full course today

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

Common architectures comparison

Common architectures comparison

From the course: iOS App Development: Design Patterns for Mobile Architecture

Start my 1-month free trial

Common architectures comparison

- [Instructor] To begin with, we're looking at our example app, which was first developed in the MVC pattern. Next, we'll look at how our app looks after applying these MVP architectures. When you compare the two, you'll notice that they look exactly the same and this is the first point of MVP which is MVP doesn't change how the app looks nor how the user interfaces behave, it just helps organize and understand our code better behind the scenes. Taking a deeper look into MVC, we can see the three different concepts, the model which represents the data, the view, or the user interface, and the view controller, which is basically all of the code responsible for tying the data to the view. Model, view, control. When comparing that with the MVP pattern we see almost the exact same pieces. We still have our model, we still have our view, but we've included the view controller with that view and have separated all the non-view logic into a separate layer, our presenter. This gives us our…

Contents