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

Controllers

When a switch is flipped or a button is tapped in an interface, a controller responds to the interaction. The controller is the brain behind your interface. And like a brain, the controller needs to be properly wired to work correctly.
For the controller to do its job, it needs to know about both the button and label you’ve added to the interface. Right now, the controller is a blank slate, so you need to tell it about the button and label, or outlets. In addition, you need to define the methods, or actions, that will be called when the button is pressed and released.
073
DEFINITION
A controller connects your interface with the rest ...

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