I am using iOS SDK 5.1 , Xcode 4.3.3. And developing a project with Automatic Reference Counting (ARC) turned ON. I’ve read that ARC only works on iOS 4 or higher versions. But when I set deployment target to OS 3.0 , project still compiles fine. And I’m using a device with iOS 4.0 to test, and this application works fine on that device too.
My question is will this app work on a OS 3.0 actual device as well? (with ARC on).
And if it works why apple says it only works on iOS 4 or higher?
As long as you don’t use
__weakvariables, your code should work fine. ARC code compiles down to regular MRC code under the hood, it just takes care of theretain/release/autoreleasecode for you.