需要将iOS 5.0 App转换为iOS 4.3.3

Moh*_*shi 2 ios4 ios ios5 xcode4.2

我正在iOS 5.0中开发我的应用程序,但我也想将其转换为iOS 4.3.3.

我的问题是,当我在iPhone 3GS(iOS 4.3.3)中安装我的应用程序时,我没有收到编译器警告或错误.但是,当调用iOS 5.0及更高版本支持的功能时,应用程序崩溃.目前我通过检查这样的条件管理它: -

if ([[[UIDevice currentDevice] systemVersion] floatValue]>4.4)
 {
     //Call iOS 5.0 and later function.
     //For example.
     [myTabBar setTintColor:maroonColor];
 }
 else
 {
     //Otherwise not do anything.
 }
Run Code Online (Sandbox Code Playgroud)

有没有办法轻松地将iOS 5.0应用程序转换为iOS 4.3.3.或者与最大部署目标相关的任何设置.所以我可以将它设置为4.3.3并立即获得所有错误iOS 5.0支持的功能.

MrM*_*age 5

您可能希望查看DeployMate,它应列出所有可能的不兼容性.我会使用if ([myTabBar respondsToSelector:@selector(setTintColor)])而不是你的代码.