UIImagePickerController

去相册选照片时,导航的背景色和页面的背景色不一致,影响美观,需修改。

修改方式:

#pragma mark----UINavigationControllerDelegate

- (void)navigationController:(UINavigationController*)navigationController willShowViewController:(UIViewController*)viewController animated:(BOOL)animated

{

//导航背景色

navigationController.navigationBar.barTintColor=Color_87BA4B;

//右侧取消按钮颜色

[navigationController.navigationBarsetTintColor:[UIColorwhiteColor]];

//标题颜色

[navigationController.navigationBarsetTitleTextAttributes:@{

NSForegroundColorAttributeName: [UIColorwhiteColor],NSFontAttributeName:[UIFontsystemFontOfSize:18.0]

}];

}

你可能感兴趣的:(UIImagePickerController)