扫码关注官方订阅号
在使用UIImagePickerController时,调出相册时,上面的Navgationbar的背景色为白色,但是原来的按钮是可以点击的,怎么修改它的颜色
闭关修行中......
新建类继承UIImagePickerController
里面写上 self.navigationBar.translucent = NO;
[self.navigationBar setBarTintColor:NavgationBarTintColor];//背景颜色 self.navigationBar.tintColor = [UIColor whiteColor]; //按钮颜色 [self.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}]; //标题颜色}
[[UINavigationBar appearence] setBarTintColor:xxx];
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
新建类继承UIImagePickerController
里面写上
self.navigationBar.translucent = NO;