Hour 9. Declaring Properties in an Interface File

What You’ll Learn in This Hour

Determining when to use declared properties and when to use instance variables

Exploring attributes for declared properties

Using declared properties to manage memory

Backing declared properties with instance variables

Comparing Interface Variables and Properties

There are two ways of declaring the data elements that are part of a class. You can declare them as instance variables in the same way that you declare integers and floats. You can also declare them as properties of the class. The previous hour, Hour 8, “Declaring Instance Variables in an Interface File,” explored the use of interface variables. In this hour, you see how to use properties to accomplish ...

Get Sams Teach Yourself Objective-C in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.