Onato
Onato

Reputation: 10221

Interface Builder generating non-ARC code

When I right-click-drag from an object in my storyboard to create a new action, Interface Builder adds it as though I am not using ARC i.e.

@property (retain, nonatomic) IBOutlet UIView *myView;
…
- (void)dealloc {
    [_myView release];
    [super dealloc];
}

How can I tell Interface Builder to generate ARC code for me?

Upvotes: 0

Views: 65

Answers (1)

Alexander
Alexander

Reputation: 7238

Go to your projects build settings and check if ARC is enabled – set to YES:

enter image description here

And, as you mentioned in your comment, for cocoapods check the CLANG_ENABLE_OBJC_ARC=NO attribute

Upvotes: 1

Related Questions