如何在UIImagePickerController导航栏上更改按钮颜色? [英] How to change button color on UIImagePickerController navigation bar?

查看:132
本文介绍了如何在UIImagePickerController导航栏上更改按钮颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已设法更改导航栏的颜色,但按钮的颜色仍为黑色。有没有办法改变按钮的颜色?见下图。

I have managed to change the color of the navigation bar but the color of the buttons is still black. Is there any way to change the color of the buttons as well? See below image.

更新:由于版权问题,抱歉不得不删除图像。

UPDATE: Sorry had to remove the image due to copy right issue.

推荐答案

没有您的自定义图片是不可能的。

It is not possible without your custom image.

但是你应该尽快更改色调颜色创建导航控制器:

but you should change the tint color as soon as you create the navigation controller:

 UIImagePickerController *pickerImg = [[UIImagePickerController alloc] init];
pickerImg.navigationBar.barStyle = UIBarStyleBlackOpaque; // Or whatever style.
// or
pickerImg.navigationBar.tintColor = [UIColor whateverColor];

这篇关于如何在UIImagePickerController导航栏上更改按钮颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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