首页 > 其他 > 详细

libXml ARC forbids explicit message send of'release'

时间:2014-09-13 20:07:45      阅读:276      评论:0      收藏:0      [点我收藏+]

 

‘release‘ is unavailable: not available in automatic reference counting mode

 

 

ARC forbids explicit message send of‘release‘

‘release‘ is unavailable: not available inautomatic reference counting mode

 

解决办法:

打开当前工程,打开"Build Settings",找到Objective-C Automatic Reference Counting项,将它的值设置为NO。

再次编译,就消除了这个错误了。

后来我的做法是把release 去掉,使用ARC的特性。
Objective-C Automatic Reference Counting=YES时候,所有的引用计数均自动执行。这是LLM的新特性,当非ARC环境时,可选择用这个。

http://blog.sina.com.cn/s/blog_7b9d64af01019rqt.html

要分情况处理,要多学习。oc的内存处理机制。

 

libXml ARC forbids explicit message send of'release'

原文:http://www.cnblogs.com/wcLT/p/3970171.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!