UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.view.backgroundColor = [UIColor whiteColor];
picker.delegate = self;
// 更改picker的导航条颜色 及item的tintcolor
if ([picker.navigationBar respondsToSelector:@selector(setBarTintColor:)]) {
[picker.navigationBar setBarTintColor:[UIColor colorWithWhite:0.1 alpha:1.0]];
[picker.navigationBar setTranslucent:YES];
[picker.navigationBar setTintColor:[UIColor whiteColor]];
}else{
[picker.navigationBar setBackgroundColor:[UIColor colorWithWhite:0.1 alpha:1.0]];
}
// 更改titieview的字体颜色
NSMutableDictionary *attrs = [NSMutableDictionary dictionary];
attrs[NSForegroundColorAttributeName] = [UIColor whiteColor];
[picker.navigationBar setTitleTextAttributes:attrs];
[self showDetailViewController:picker sender:nil];