首页 > 使用UIImagePickerController的问题

使用UIImagePickerController的问题

在使用UIImagePickerController时,调出相册时,上面的Navgationbar的背景色为白色,但是原来的按钮是可以点击的,怎么修改它的颜色


[[UINavigationBar appearence] setBarTintColor:xxx];

新建类继承UIImagePickerController

里面写上
self.navigationBar.translucent = NO;

    [self.navigationBar setBarTintColor:NavgationBarTintColor];//背景颜色
    self.navigationBar.tintColor = [UIColor whiteColor];   //按钮颜色
    [self.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}]; //标题颜色}
【热门文章】
【热门文章】