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

Shocking Finale

To change the label’s text, you simply set its text property. Chapter 6 explains properties in great detail, but for now, all you need to know is how to set the text property of the label.
086
DEFINITION
A property is a convenient way to access and set the data for an object in Objective-C.
In Xcode, switch from debugger view to project view by selecting Project > Project from the top menu bar. Then, remove the NSLog calls, and set the label text properties, like so:
087
Save your project, then run it so it launches in the iPhone ...

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