rror: 'release' is unavailable: not available in automatic reference counting,该怎么解决
www.MyException.Cn 发布于:2012-12-31 11:57:52 浏览:47次
0
error: 'release' is unavailable: not available in automatic reference counting
请问这是一个什么错误
该怎么改正
谢谢
------解决方案--------------------
项目使用了ARC,不用retian、release神马的都不用。编译器会自动添加。
具体的可以百度 ARC详解。
如果要关闭ARC,这个时候,可以将项目编译设置中的“Objectice-C Auto Reference Counteting”设为NO。如下所示。