if convert project to Automatic Reference Counting(ARC), Is it still support on iOS 3.X, 4.X?

喜欢而已 提交于 2019-11-28 07:35:29

问题


i not sure about convert project to Automatic Reference Counting(ARC). it still support on iOS 4.X or lower ?

thank you


回答1:


From what I can gather yes - ARC is done by the compiler and should be thought of as a wizard or helper that checks all of your code and inserts the correct retain and release statements for you.

This will therefore be compatible with older iOS runtimes.

Edit:

IT will support 4.x but not 3.x




回答2:


It will support iOS 4 but not iOS 3.

Still, there's no full support for iOS 4 since weak references only work on iOS 5. Quoting the Transitioning to ARC Release Notes directly from Apple:

ARC is supported in Xcode 4.2 for Mac OS X v10.6 and v10.7 (64-bit applications) and for iOS 4 and iOS 5. Weak references are not supported in Mac OS X v10.6 and iOS 4.



来源:https://stackoverflow.com/questions/6421753/if-convert-project-to-automatic-reference-countingarc-is-it-still-support-on

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