首页 > 代码库 > [转]关于NSAutoreleasePool' is unavailable: not available in automatic reference counting mode的解决方法

[转]关于NSAutoreleasePool' is unavailable: not available in automatic reference counting mode的解决方法

转载地址:http://blog.csdn.net/xbl1986/article/details/7216668

Xcode是Version 4.2 Build 4D151a

根据Objective-c 2.0程序设计上的旧版本的代码会发生NSAutoreleasePool‘ is unavailable: not available in automatic reference counting mode的错误

需要手动关闭工程中ARC

工程中 Build Settings--->Apple LLVM compiler 3.0 - Language--->Objective-C Automatic Reference Counting 把YES改为NO就可以了

然后就可以编译通过了

[转]关于NSAutoreleasePool' is unavailable: not available in automatic reference counting mode的解决方法