错误:'release' is unavailable: not available in automatic reference counting mode..(Xcode4.2.1+iOS5.0)

Xcode4.2.1+iOS5.0下面编译出现错误:

'release' is unavailable: not available in automatic reference counting mode..

解决办法:

You need to turn off Automatic Reference Counting. You do this by clicking on your project in the navigator (the top item in the finder-like thing on the left), then click on your target, select "Build Settings" and turn off the option "Objective-C Automatic Reference Counting" (you can use the search field on the upper right to search it).

posted on 2011-12-28 11:03  封起De日子  阅读(183)  评论(0编辑  收藏  举报

导航