您的位置:首页 > 其它

类似ARC forbids explicit message send of'release' 错误解决

2013-05-08 09:39 531 查看



You are currently using the ARC to reference count for you.

(ARC is "Automatic Reference Counting", a new feature to iOS 5).

Therefore you do not need to manually retain or release.

You can either remove your retain call all together or turn off ARC by doing the following:

Click on the name of the project on the navigation view in the left side,

go to Targets -> Build Phases and add
-fno-objc-arc
to
the "compiler flags" for any relevant files.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: