解决问题ARC forbids explicit message send of 'release'

时间:2014-05-09 06:23:39   收藏:0   阅读:285
一、问题

用XCODE5新建工程,COPY老工程代码,编译出现以下错误:

ARC forbids explicit message send of ‘release‘


二、解决

工程-->"Build Settings"-->找到Objective-C Automatic Reference Counting项-->将它的值设置为NO。

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


解决问题ARC forbids explicit message send of 'release',布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!