Xcode 4.2 with ARC: will my code run even on iOS devices with firmware older than 5.0?

回眸只為那壹抹淺笑 提交于 2019-12-17 20:24:51

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/7768861/xcode-4-2-with-arc-will-my-code-run-even-on-ios-devices-with-firmware-older-tha

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