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

Add Outlets and Actions to the Controller

Back in Xcode, add the instance variables, properties, and action methods so that your FontsViewController.h interface file matches the following code:
151
Some important things to note about the preceding code:
• The UIKit framework provides the UISegmentedControl, UISlider, and UISwitch classes.
• Notice you have not defined instance variables for every view in the interface. Instead, you will define instance variables only for the views needed to update the interface. For instance, the label titled “Font Name” does not change, so you do not need a reference to it in code.
• In the property declarations, ...

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