Overview of an Iphone App for NOOBs

This is based on the stanford assignment 2B but its the basic layout for the design using the MVC. MVC is a template for design that you can use in iphone dev.

The model is where you define a new class of object and the methods it will perform. In this case, simply the contraints of min and max sides as well as the angles, name and description methods of a polygon.

Then the controller files define the class for all the interface controls and the methods they use.

Basically these controls will communicate with the model objects to update them of changes from the user actions in the view.

The model will then check itself and notify the controller of its methods and the controller will turn around and update the view objects in the xib.


The model will have the definition of an animal.  If its a mammal or reptile, what color it is, does it have hair, how many legs or extremities.

In the view you will display an animal with data received from the controller.  Also the controller will present the view  to the interface for him to select different animals from the screen.

The controller will translate user selections to go fetch the animal properties according to user selection and update the view the user sees.

2 Replies to “Overview of an Iphone App for NOOBs”

  1. Pretty cool post. I just came by your blog and wanted to say that I have really enjoyed browsing your posts.

    Any way I’ll be subscribing to your feed and I hope you post again soon!

  2. Finally figured out how to hook up the view to the MC part of the model in Assignment 3 from Stanford’s CS193P iphone programming class. It turns out assignment 3 LEAPS ahead from the previous one and also incorporates a drawing a polygon example which is really heavy coding for a beginner. Perhaps it wasnt the best choice for a beginning assignment. Assignment 1 and 2/B are good to start out, but they are based on a them that must get dense quickly in order to be interesting. Basically you get to assignment 3 thinking you have to understand all that code and most of it from 2B to 3 is actually mathematical code required from knowing how to draw a polygon based on the number of sides and its internal angle distribution. DONT GET BOGGED DOWN. the important part here is only the subclassing of a UIView class and how to hook it up in IB.

Leave a Reply