07-21-2023, 09:19 PM
I'm currently developing an app for iPad. The development started for iOS 4.2 and is now continuing (and I think will be completed) for iOS 4.3.
I just read about ARC in iOS 5, and basically I understood that we will never need to release and retain objects anymore. My questions are:
1. If I decide to upgrade to iOS 5, do I need to remove all `[myObject retain]` and `[myObject release]` statements from my code?
2. If I develop a new app for iOS 5 using ARC, will I need to implement some sort of "retro-compatibility" checks? i.e.: will I need to check the version of iOS and call retain and release accordingly? So, basically, is ARC available for all iOS versions or just for iOS 5?
I just read about ARC in iOS 5, and basically I understood that we will never need to release and retain objects anymore. My questions are:
1. If I decide to upgrade to iOS 5, do I need to remove all `[myObject retain]` and `[myObject release]` statements from my code?
2. If I develop a new app for iOS 5 using ARC, will I need to implement some sort of "retro-compatibility" checks? i.e.: will I need to check the version of iOS and call retain and release accordingly? So, basically, is ARC available for all iOS versions or just for iOS 5?