O'Reilly logo

The Complete Idiot's Guide® To iPad and iPhone App Development by Troy Brant

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

MVC

Have you ever seen (or written) code that consists of roughly one monster class that does everything? Somehow it just works, but you have no idea how or why. Adding new functionality is an admirable idea, but futile in the end. Everything you do seems to break something else. Good luck trying to find code you can reuse.
MVC is a design pattern used to avoid these “spaghetti-code” situations. In MVC, classes have clearly defined responsibilities, so instead of one class to run your application, you have classes managing data, classes displaying data to the user, and classes gluing it all together. Segmenting the app into these smaller chunks has several advantages, including the fact your code is more reusable, less complex, and easier to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required