当前位置: 代码迷 >> Iphone >> error: 'release' is unavailable: not available in automatic reference counting,该怎么解决
  详细解决方案

error: 'release' is unavailable: not available in automatic reference counting,该怎么解决

热度:270   发布时间:2016-04-25 06:10:57.0
error: 'release' is unavailable: not available in automatic reference counting
请问这是一个什么错误

该怎么改正

谢谢
------解决思路----------------------
项目使用了ARC,不用retian、release神马的都不用。编译器会自动添加。
具体的可以百度 ARC详解。

如果要关闭ARC,这个时候,可以将项目编译设置中的“Objectice-C Auto Reference Counteting”设为NO。如下所示。

------解决思路----------------------

只要别用 ios4以上的类和方法
  相关解决方案