Understanding MVC pattern used in iOS apps Understanding MVC pattern used in iOS apps objective-c objective-c

Understanding MVC pattern used in iOS apps


This sample code demonstrates a multi-stage approach to loading and displaying a UITableView. I think it's really interesting to dive in. It will show MVC in the works.


Here’s how the Model-View-Controller (also known as MVC) pattern maps to the main parts of your App:

Model → Data

View → User Interface

Controller → Core Logic

this explain fully with sample code

http://www.hollance.com/2011/04/making-your-classes-talk-to-each-other-part-1/

enter image description here


I believe that the following code will help you understand how to work with MVC in iOS application because its description says:

"MVCNetworking is a sample that shows how to create a network application using the Model-View-Controller design pattern. Specifically, it displays a photo gallery by getting the gallery's XML description, thumbnails and photos from a web server, and uses Core Data to cache this information locally."

http://developer.apple.com/library/ios/#samplecode/MVCNetworking/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010443