我的ARC应用程序如何在iOS 3.x中运行? [英] How does my ARC app work in iOS 3.x?

查看:139
本文介绍了我的ARC应用程序如何在iOS 3.x中运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我发现ARC仅支持运行iOS 4.0 +的设备。

So I just found out that ARC is only supported for devices running iOS 4.0+.

我的应用程序(在商店中)如何在运行iOS 3.0的设备上运行然后(绝对使用ARC)?

How does my app (in the store) work on devices running iOS 3.0 then (definitely using ARC)?

我很困惑。

来自下方的解决方案:只要我不使用归零弱引用,似乎使用ARC仍然适用于iOS 3.x,但Apple并不能保证结果。

推荐答案

ARC主要是编译时功能,编译器会插入适当的发布调用。 AFAIK仅归零弱引用需要运行时支持。所以,只要你不使用那些你在薄冰上,但它可以工作。

ARC is mostly a compile time feature, the compiler inserts the appropiate release calls. AFAIK only zeroing weak references need runtime support. So as longs as you don't use those you're on thin ice, but it can work.

这篇关于我的ARC应用程序如何在iOS 3.x中运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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