Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to set automatic reference counting - xcode 4.2

When I created my project, I checked the "Use Automatic Reference Counting" to on. Now, I'm thinking of turning it off but I can't find where to change it.

One more thing, is it advisable to use ARC for iPad/iPhone apps?

like image 847
Karina Avatar asked Feb 06 '12 04:02

Karina


2 Answers

Open the project file. Under Build Settings tab search for "Objective-C Automatic Reference Counting". Set the value for it.

Yes, sure if you want to deliver a product for iOS 4.0 and above you can definitely use ARC.

like image 93
Apurv Avatar answered Oct 13 '22 06:10

Apurv


You can turn off "Use Automatic Reference Counting" by clicking on your project in the navigator (the top item in the finder-like thing on the left) click on your target, select "Build Settings" and turn off the option "Objective-C Automatic Reference Counting"

If programmer is novice than it is good advice to let them do it manually , otherwise his memory fundamentals will be never clear , Otherwise it is just fine to use it.

like image 31
Mihir Mehta Avatar answered Oct 13 '22 05:10

Mihir Mehta