带ARC的Xcode 4.2:即使在固件版本低于5.0的iOS设备上,我的代码也能运行吗? [英] Xcode 4.2 with ARC: will my code run even on iOS devices with firmware older than 5.0?

查看:91
本文介绍了带ARC的Xcode 4.2:即使在固件版本低于5.0的iOS设备上,我的代码也能运行吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Xcode更新为4.2版本,其中包括ARC技术。这似乎是一件好事,但如果我根据Apple的建议启用ARC并编辑我的代码,我的应用程序是否可以在4.3.x设备上构建和运行?或仅适用于iOS 5的?

I updated my Xcode to 4.2 version, which includes the ARC technology. It seems to be a good thing, but if I enable ARC and edit my code according to Apple's suggestions, will my app build&run even on 4.3.x devices? Or only for iOS 5 ones?

推荐答案

ARC应用程序将在OS 4.0(4.3?)及更高版本上运行。在4.3上你将失去归零 - 弱参考功能。所以如果你依赖__weak,你不应该期望在< 5.0。

ARC applications will run on OS 4.0 (4.3?) and up. On 4.3 you will lose the zeroing-weak-reference feature though. So if you rely on __weak, you shouldn't expect to work properly on < 5.0.

这篇关于带ARC的Xcode 4.2:即使在固件版本低于5.0的iOS设备上,我的代码也能运行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆