iOS中MRC和ARC的 混编问题
2016-06-18 本文已影响0人
Rayla_周周
1>在MRC中使用ARC文件
选择target -> build phases -> compile sources -> 单击ARC的文件将compiler flags设置为:-fobjc-arc
如图:

2> 在ARC的环境下,使用MRC的文件
选择target -> build phases -> compile sources -> 单击MRC的文件将
compiler flags设置为:-fno-objc-arc