Converting an Existing Project to ARC

Existing projects written without ARC can be converted to use ARC by selecting Edit, Refactor, Convert to Objective-C ARC from the menu in Xcode, as shown in Figure 14.2.

Image

Figure 14.2 Xcode menu, Convert to Objective-C ARC.

Xcode will ask which targets should be converted to ARC, using a dialog as shown in Figure 14.3.

Image

Figure 14.3 Xcode Convert to Objective-C ARC, Select Targets to Convert dialog.

After you have selected the targets to be converted to ARC and clicked Check, Xcode will examine the code in the ...

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.