使用ARC( Automatic Reference Counting:自动引用计数 )来代替之前的MRC(Manual Reference Counting:人工引用计数)。

混编问题:

1.在ARC工程中使用MRC的类


  在targets的build phases选项下Compile Sources下选择要不使用arc编译的文件,双击它,输入 -fno-objc-arc 即可
  
2.MRC工程中也可以使用ARC的类。

  在targets的build phases选项下Compile Sources下选择要使用arc编译的文件,双击它,输入 -fobjc-arc 即可

posted on 2015-05-12 16:35  韩江河  阅读(292)  评论(0编辑  收藏  举报