如何制作UIImagePickerController StatusBar lightContent样式? [英] How to make UIImagePickerController StatusBar lightContent style?

查看:91
本文介绍了如何制作UIImagePickerController StatusBar lightContent样式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我提出ImagePickerController的statusBar文本颜色仍然是黑色,如何制作这样的?

When I present the ImagePickerController the statusBar text color is still black, how to make like this?

推荐答案

只需三步:

1:将 UINavigationControllerDelegate UIImagePickerControllerDelegate 添加到您的

@interface yourController ()<>

2: imagePickerController.delegate = self;

3:

-(void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
}

这篇关于如何制作UIImagePickerController StatusBar lightContent样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆