首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

IOS autorelease 异常

2012-08-25 
IOS autorelease 错误ARC forbids explicit message send ofreleaserelease is unavailable: not avai

IOS autorelease 错误

ARC forbids explicit message send of'release'

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


解决办法:

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

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


之前一直在为这个问题烦恼,因为编译一些代码总是提供autorelease等等的错误。

热点排行