IOS: automatic reference counting

。_饼干妹妹 提交于 2019-12-12 20:03:23

问题


I have a question: If I created an app with ARC, what's the last version IOS compatible for my app? If I upload my app in AppStore, everyone can use my app? or only people with a device with a specific ios version?


回答1:


ARC is supported on iOS 4.0 with one caveat: automatic nulling of weak references is only supported on iOS 5.0 and above.




回答2:


ARC compiled applications work on devices with iOS 4 or better.




回答3:


ARC "magic" is done by the compiler, so it is safe to use with iOS 4 of newer. In fact, iOS 4+ is a supported target for ARC applications. Here's a link with more information about ARC: http://clang.llvm.org/docs/AutomaticReferenceCounting.html



来源:https://stackoverflow.com/questions/8312056/ios-automatic-reference-counting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!