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

Models

So far, you’ve built the views for your application and successfully hooked them up to the controllers. You have also finished defining how the user will navigate through the app. Now that you have the wiring in place, let’s move on toward implementing the Twitter integration in the app. For this phase, you will create a TwitterUser model class to keep track of the user and their latest tweet.
The TwitterUser model class, as you will see, is dead simple. It just contains two properties, one for the username and one for the tweet, and that’s it. Model classes are typically very simple like this. Their primary role is keeping track of application data, and as such, they don’t need to do much.
To add the TwitterUser model class, follow ...

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