0

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

Brad Larson
  • 170,088
  • 45
  • 397
  • 571
4mahmoud
  • 813
  • 2
  • 19
  • 31

2 Answers2

1

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?

Community
  • 1
  • 1
Wevah
  • 28,182
  • 7
  • 83
  • 72
0

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

Thorsten
  • 12,921
  • 17
  • 60
  • 79