Ven*_*h G 12 objective-c uiimagepickercontroller ios ios7
这里我使用下面的代码.如果有人知道这个问题,请帮助我.我也试过下面的网址,但它不起作用.请帮我
iOS7 UIImagePickerController取消按钮消失 UIPopoverController里面的UIImagePickerController在iOS7上没有显示取消按钮
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsEditing = YES;
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentViewController:picker animated:YES completion:NULL];
picker.navigationBar.tintColor = [UIColor redColor];
picker.navigationBar.barStyle = UIBarStyleBlackOpaque;
picker.navigationBar.topItem.rightBarButtonItem.tintColor = [UIColor blackColor];
Run Code Online (Sandbox Code Playgroud)
我的问题:
我的需求:
这对我有用:
present(imagePicker, animated: true, completion: {
imagePicker.navigationBar.topItem?.rightBarButtonItem?.tintColor = .black
})
Run Code Online (Sandbox Code Playgroud)
更改 UIImagePickerController navigationBar.tintColor 尝试以下代码:
UINavigationBar *bar = [self.navigationController navigationBar];
[bar setTintColor:[UIColor blueColor]];
Run Code Online (Sandbox Code Playgroud)