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

Properties

A property is an Objective-C convenience that automates the creation of getters and setters for your class. In Chapter 5, you defined a Shape class and manually defined the getters and setters. Here is the Shape class definition without using properties:
131
132
DEFINITION
A property provides a simple way to implement an object’s getter and setter methods. @property is used to define a property, and @synthesize is then used to generate the getter and setter for the property.
You can automate the creation of the getter and setter methods ...

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