double version = [[UIDevice currentDevice].systemVersion doubleValue];//判定系统版本。
if(version>=5.0f){
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed: @"navigationBar.jpg"] forBarMetrics:UIBarMetricsDefault];
}