如何关闭ARC

  在学习OC内存管理的时候, 发现这环境太高端了,于是找到了如何关闭ARC的方法,方法如下:

  Build Setting--->Apple LLVM compiler 3.0- Language--->Objective-C Automatic Reference Counting 将YES改为NO(两处);


但实际上 ARC确实比手动释放快,而且不会发生内存泄漏的情况,具体可以参考这里
http://clang.llvm.org/docs/AutomaticReferenceCounting.html
http://stackoverflow.com/questions/6385212/how-does-the-new-automatic-reference-counting-mechanism-work

原文地址:https://www.cnblogs.com/mohe/p/2961019.html