OC 如果需要手动显示操作 release retaionCount等解决办法

错误提示

ARC forbids explicit message send of'retain'

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

解决方法;

 

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

 

将ARC设为MRC

posted on 2015-11-28 16:37  程序修炼之道  阅读(293)  评论(0)    收藏  举报

导航