Add the -fobjc-arc
flag to any files for which you’d like to enable ARC, as described in the ARC documentation.
More Related Contents:
- How can I disable ARC for a single file in a project?
- Why is @autoreleasepool still needed with ARC?
- How do I avoid capturing self in blocks when implementing an API?
- How do I implement an Objective-C singleton that is compatible with ARC?
- Does ARC support dispatch queues?
- Disable Automatic Reference Counting for Some Files
- ARC and bridged cast
- Some questions about Automatic Reference Counting in iOS5 SDK
- Should I refer to self.property in the init method with ARC?
- Weak NSString variable is not nil after setting the only strong reference to nil
- capturing self strongly in this block is likely to lead to a retain cycle
- In which situations do we need to write the __autoreleasing ownership qualifier under ARC?
- NSArray of weak references (__unsafe_unretained) to objects under ARC
- AVAudioPlayer not playing any sound
- @property definitions with ARC: strong or retain?
- NSString to CFStringRef and CFStringRef to NSString in ARC?
- Does ARC work with Core Graphics objects?
- ARC – The meaning of __unsafe_unretained?
- With ARC, what’s better: alloc or autorelease initializers?
- Instance variables declared in ObjC implementation file
- Retain Cycle in ARC
- When converting a project to use ARC what does “switch case is in protected scope” mean?
- Property vs. ivar in times of ARC
- Zeroing Weak References in ARC
- AVAudioPlayer stops playing immediately with ARC
- Custom dealloc and ARC (Objective-C)
- Why does ARC retain method arguments?
- NSError and __autoreleasing
- Why can’t I release an object anymore? [duplicate]
- fake va_list in ARC