ios - 带有 ARC : will my code run even on iOS devices with firmware older than 5. 0 的 Xcode 4.2?

标签 ios xcode automatic-ref-counting

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

最佳答案

ARC 应用程序将在 OS 4.0(4.3?)及更高版本上运行。但是在 4.3 上你将失去归零弱引用特性。因此,如果您依赖 __weak,则不应期望在 < 5.0 上正常工作。

关于ios - 带有 ARC : will my code run even on iOS devices with firmware older than 5. 0 的 Xcode 4.2?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7768861/

相关文章:

iphone - 是否可以从 xcode 安装应用商店构建来测试手机?

swift - MacOS - 如何以编程方式将 ImageView 彼此相邻放置?

ios - inputAssistantItem 和 inputAccessoryView 停止使用 ARC

wifi - iOS5中需要ARC的可达性版本

iOS SoundTouch 框架 BPM 检测示例

objective-c - NSURLConnection 与 NSRunLoopCommonModes

iOS/iPad 应用程序,在本地保存数据

ios - UIWebView:当应用程序进入后台时,HTML5 音频在 iOS 6 中暂停

ios - 代码 8 : Build app with iOS 9 Base SDK

ios - 是否需要在GCD中的ARC下创建一个autorelease pool?