Object C学习笔记5-ARC forbids explicit message* 编译错误

Object C学习笔记5-ARC forbids explicit message* 编译错误

2014-01-26 16:00 by 贺臣, 67 阅读, 0 评论, 收藏, 编辑

 

  在学习Object C的过程中XCode 编译器经常出现 "ARC forbids explicit message send of release" 的错误提示。

  以上问题主要出现在release,retain 等操作的时候,这是因为你在新建工程的时候使用ARC功能.我们只需要Build Setting中设置如下:

  打开“Build Setting”,找到“Objective-C Automatic Reference Counting”项,将它的值设置成“NO”

  截图操作如下:

  

 

转载于:http://www.cnblogs.com/qingyuan/p/3534143.html

posted @ 2014-03-10 16:35  星月相随  阅读(238)  评论(0编辑  收藏  举报