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

Interface Challenge

There isn’t much of a challenge to the Interface Challenge portion of this chapter. Follow these steps to get started:
1. Create a new View-based Application and name it “Animotion.”
2. Edit AnimotionViewController.xib, and set the view’s background color to white.
3. Add an instance variable of type UIView named “toyView” to AnimotionViewController.
4. Add the following constants to AnimotionViewController.m.
399
5. Override loadView, and initialize the toyView as follows:
• Programmatically alloc/init toyView using the constants you just defined.
• Set the toyView’s backgroundColor property to a color, such as [UIColor orangeColor]. ...

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