double version = [[UIDevice currentDevice].systemVersion doubleValue];//判定系统版本。
if(version>8.0f){
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed: @"navigationBar.jpg"] forBarMetrics:UIBarMetricsDefault];
NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
[[UIApplication sharedApplication] openURL:url];
}else{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"提示" message:@"当前版本过低" delegate:self cancelButtonTitle:nil otherButtonTitles:@"确定", nil];
[alert show];
}