Basic ARC Usage

There are new coding rules and guidelines to follow for projects using ARC. The compiler will enforce the ARC-specific rules, and generate warnings or errors as appropriate:

Image Create instances of variables and properties as normal, using alloc/init, new, copy, or class methods.

Image Using retain, release, and autorelease is not allowed. The compiler will automatically insert retain, release, and autorelease for objects allocated in project code at compile time. Note that the inserted statements are not visible.

Use qualifiers for properties ...

Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK 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.