由于 iOS5 xcode4.2 引入了ARC (AutomicReferenceCounting) , 使用xcode4.2 新建项目时,会有一些小小的变化。

   NSAutoReleasePool  被 @ {Autoreleasepool / / Code for autoreleasepool } block 取代了。

  新增了__strong , __weak 编译指令。

  如果需要在项目中关闭 ARC 功能,在项目属性中将CLANG_ENABLE_OBJC_ARC  设置为NO即可。否则在编译时,会对 release ,retainCount, retain 等内存相关操作在编译时出现红色警告。



先不讨论这arc这死人东西好不好.  去掉先,  不当小白鼠