错误:'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).

你可能感兴趣的:(search,reference,XCode4,ios5)