[英]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 ie 当我右键单击情节提要中的对象以创建新动作时,Interface Builder将其添加为好像我没有使用ARC,即
@property (retain, nonatomic) IBOutlet UIView *myView;
…
- (void)dealloc {
[_myView release];
[super dealloc];
}
How can I tell Interface Builder to generate ARC code for me? 如何告诉Interface Builder为我生成ARC代码?
Go to your projects build settings and check if ARC is enabled – set to YES
: 转到项目的构建设置,然后检查是否启用了ARC –设置为
YES
:
And, as you mentioned in your comment, for cocoapods check the CLANG_ENABLE_OBJC_ARC=NO
attribute 而且,正如你在您的评论中提到,为的CocoaPods检查
CLANG_ENABLE_OBJC_ARC=NO
属性
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.