标签:
在隐藏导航栏的控制器中,调用UIIMagePickerController,出现导航栏变透明的问题
解决办法
#pragma mark - UIImagePickerController Delegate - (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated { // bug fixes: UIIMagePickerController使用中偷换StatusBar颜色的问题 if ([navigationController isKindOfClass:[UIImagePickerController class]]) { [navigationController.navigationBar setBarStyle:UIBarStyleBlack]; navigationController.navigationBar.translucent = NO; //设置成想要的背景颜色 [navigationController.navigationBar setBarTintColor:Color(201.0f, 45.0, 6.0, 1)]; } }
在隐藏导航栏的控制器中,调用UIIMagePickerController,出现导航栏变透明的问题
标签:
原文地址:http://www.cnblogs.com/HMJ-29/p/5468479.html