修改模态出的相册NavigationBar的颜色

// 跳转到相机或相册页面

UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];

这句代码就是改变模态相册的UINavigationBar

[[UINavigationBar appearance] setBarTintColor:[UIColor blueColor]];

imagePickerController.navigationController.navigationBarHidden = NO;        imagePickerController.delegate = self;

imagePickerController.allowsEditing = YES;

imagePickerController.sourceType = sourceType;

[self presentViewController:imagePickerController animated:YES completion:^{

}];

}

你可能感兴趣的:(修改模态出的相册NavigationBar的颜色)