判断ios系统版本号的代码
Ios技术文章收录 Ios有用代码
double version = [[UIDevice currentDevice].systemVersion doubleValue];//判定系统版本。
if(version>=5.0f){
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed: @”navigationBar.jpg”] forBarMetrics:UIBarMetricsDefault];
}