Reputation: 10221
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
Reputation: 7238
Go to your projects build settings and check if ARC is enabled – set to YES
:
And, as you mentioned in your comment, for cocoapods check the CLANG_ENABLE_OBJC_ARC=NO
attribute
Upvotes: 1