关于 ARC forbids explicit message send of 'release'

转载自:http://stackoverflow.com/questions/7164848/arc-error-when-compiling

Simply remove all calls to-release. You're not allowed to call-releaseunder ARC because the compiler will insert all the necessaryretain/releasecalls for you. Read more about ARChere.

The other way is to use the conversion tool, and Xcode can convert your project to ARC (including removing these calls) for you:关于 ARC forbids explicit message send of 'release'_第1张图片

To disable ARC entirely, change your build settings:关于 ARC forbids explicit message send of 'release'_第2张图片

However I'd recommend you start using ARC, it will make things a lot easier and actually faster too.


你可能感兴趣的:(message)