在学习Object C的过程中XCode 编译器经常出现 "ARC forbids explicit message send of release" 的错误提示。
以上问题主要出现在release,retain 等操作的时候,这是因为你在新建工程的时候使用ARC功能.我们只需要Build Setting中设置如下:
打开“Build Setting”,找到“Objective-C Automatic Reference Counting”项,将它的值设置成“NO”
截图操作如下:
2014-01-26 16:00 by 贺臣, 2 阅读, 0 评论, 收藏, 编辑
在学习Object C的过程中XCode 编译器经常出现 "ARC forbids explicit message send of release" 的错误提示。
以上问题主要出现在release,retain 等操作的时候,这是因为你在新建工程的时候使用ARC功能.我们只需要Build Setting中设置如下:
打开“Build Setting”,找到“Objective-C Automatic Reference Counting”项,将它的值设置成“NO”
截图操作如下:
Object C学习笔记5-ARC forbids explicit message* 编译错误,布布扣,bubuko.com
Object C学习笔记5-ARC forbids explicit message* 编译错误
原文:http://www.cnblogs.com/wodehao0808/p/3592094.html