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

Make the Button Do Something Interesting

In Objective-C, a single class is split across two files: the interface file and the implementation file. Interface files end in .h and contain the public class definition. You define both the instance variables and the methods you want visible to the entire world in the interface file. Implementation files, on the other hand, are where you write the bodies of those methods. In Chapter 5, interface and implementation files are covered in great detail.
Earlier, you edited iShockUViewController.h, which is the interface file for the iShockUViewController class. Now that the interface is defined, you must edit the implementation file. Go ahead and select iShockUViewController.m in the Groups & Files section. ...

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