如何关闭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

posted @ 2013-03-15 11:21  墨禾米说  阅读(356)  评论(0编辑  收藏  举报