I am on a new project. I want my code compatible to be for both IOS4 and IOS5 SDKs. I need all my functionalities work both in IOS4 and IOS5. That said, i am not planning to use new features in IOS5 (feature wise) and disable that feature for IOS4.
I have 2 options. Let me know which is best ?
- Target and code for IOS4. and that will work fine in IOS5 also, i think.
- BaseSDK IOS5 and target IOS4 .(I am not planning to use ARC or storyboard for now anyway ).
I think with method #2, i have to be extra careful while using each usages at the same time as i am not using story board and ARC , there are no benefits. So hope #1 is better.
Let me know expert opinion.
Note: in future if need to switch to IOS5 new features , hope only this ARC will be the blocking and that is also an optional thing and i can easily switch rt?
Go with the first one. If you’re making your app for iOS4 and you’re not using anything new from iOS5 then don’t make things more complicated for yourself.
The only real time you want to use the second option is when you want to use some of the new features in iOS5 but you still want it to be compatible on iOS4, in which case you will have to put in conditional checks for the iOS version that your program is currently being run on.
By the way, ARC is compatible to iOS4 anyway.