UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];// 左右按钮颜色[[UINavigationBar appearance] setBarTintColor:[UIColor whiteColor]] ;// 标题颜色NSMutableDictionary *attrs = [NSMutableDictionary dictionary];attrs[NSForegroundColorAttributeName] = [UIColor whiteColor];[[UINavigationBar appearance] setTitleTextAttributes:attrs];// 导航条背景图[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"backImage"] forBarMetrics:UIBarMetricsDefault];
详细解决方案
iOS UIImagePickerController 自定义导航条背景、标题和按钮的颜色
热度:5 发布时间:2023-12-22 17:28:16.0