ARC forbids explicit message send of'release'

来源:互联网 发布:仿淘宝app首页 编辑:程序博客网 时间:2024/05/21 11:14

转载地址:http://blog.sina.com.cn/s/blog_4adf31ea0102edmf.html


解决办法:

打开当前工程,打开"Build Settings",找到Objective-C Automatic Reference Counting项,将它的值设置为NO。

再次编译,就消除了这个错误了。


同样这样也能消除,NSAutoreleasePool在自动引用计数模式下无法使用;ARC下,使用@autoreleasepool标签;

'NSAutoreleasePool' is unavailable: not available in automatic reference counting mode


原创粉丝点击