4mahmoud
4mahmoud

Reputation: 853

Do i need to remove all memory management methods in ARC-enabled project?

my app is developed with ARC disabled from the beginning, now i decided to take advantage of ARC techniques, when i try to convert the project to ARC i keep getting errors wherever release autorelease methods are exist, does that mean i have to dig into my project and get rid of any methods related to memory management? thanks

Upvotes: 0

Views: 163

Answers (2)

Thorsten
Thorsten

Reputation: 13181

There are a lot of good references on the web that deal with automatic reference counting, e.g.

http://www.raywenderlich.com/5677/beginning-arc-in-ios-5-part-1

or

http://www.mikeash.com/pyblog/friday-qa-2011-09-30-automatic-reference-counting.html

Upvotes: 0

Wevah
Wevah

Reputation: 28242

Yes, you are not allowed to use release, retain, or autorelease in ARC code. If it's too much of a hassle, you can disable ARC on a per-file basis as described here: How can I disable ARC for a single file in a project?

Upvotes: 1

Related Questions