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
  • 169,393
  • 45
  • 393
  • 567
4mahmoud
  • 773
  • 2
  • 17
  • 29

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,020
  • 7
  • 84
  • 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,483
  • 16
  • 59
  • 79