You might want to look at DeployMate, which should list all possible incompatibilities. And I would use if ([myTabBar respondsToSelector:@selector(setTintColor)])
rather than your code.
Need to convert iOS 5.0 App to iOS 4.3.3
Question
I am developing my app in iOS 5.0 but i also want to convert it to iOS 4.3.3.
My Problem is that i get no compiler warnings or error when i install my app in iPhone 3GS(iOS 4.3.3). But app crashes when there is a call to iOS 5.0 and later supported functions. Currently i am managing it by checking condition like this:-
if ([[[UIDevice currentDevice] systemVersion] floatValue]>4.4)
{
//Call iOS 5.0 and later function.
//For example.
[myTabBar setTintColor:maroonColor];
}
else
{
//Otherwise not do anything.
}
Is there a way to convert iOS 5.0 app to iOS 4.3.3 easily. Or any settings related to maximum deployment target. So i can set it to 4.3.3 and get all errors at once iOS 5.0 supported functions.
La solution
Autres conseils
Apple's guide here: https://developer.apple.com/library/mac/#documentation/developertools/conceptual/cross_development/Configuring/configuring.html
"Choose a base SDK. Your software can use features available in OS versions up to and including the one corresponding to the base SDK. By default , Xcode sets this to the newest OS supported by Xcode."
...so: set your base SDK to iOS 4.3.3 (requires you to have 4.3.3 installed), and attempt to build.
EDIT: and if you don't still have a copy of SDK 4.3.3, you can get it via Apple's hidden (they don't link it from the iOS dev center :( ) downloads page: https://developer.apple.com/downloads/index.action?name=ios