[英]MRC in iOS7 and Xcode5
1) Cant we run ios project developed using MRC(Manual Reference Counting) which is for iOS6? 1)我们不能运行使用适用于iOS6的MRC(手动参考计数)开发的ios项目吗? Does not Xcode 5 allow to code using MRC as it supports ARC?
Xcode 5是否允许使用MRC进行编码,因为它支持ARC? Can we use only ARC in Xcode 5?
我们可以在Xcode 5中只使用ARC吗?
Yes you can. 是的你可以。 Simply set build setting
Objective-C Automatic Reference Counting
to No
只需将构建设置
Objective-C Automatic Reference Counting
为No
(Click Project->Build Settings) (单击项目 - >构建设置)
Go to Targets --> BuildPhases-->Compile Source here you can see list of .m files double click on any .m file and write -fno-objc-arc . 转到Targets - > BuildPhases - > Compile Source,你可以看到.m文件列表,双击任何.m文件并写入-fno-objc-arc。 Now you can Use MRC in your code , make sure you write code for all .m (-fno-objc-arc)
现在您可以在代码中使用MRC,确保为所有.m编写代码(-fno-objc-arc)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.