开发者

Can the Cancel button be removed from a UIImagePickerController in OS 3.2?

开发者 https://www.devze.com 2023-01-02 22:19 出处:网络
The problem: There was an image here开发者_如何学编程, but the link went dead. It shows a UIImagePickerController shown inside a popover, as a view inside of another controller (that is, it\'s not th

The problem:

There was an image here开发者_如何学编程, but the link went dead. It shows a UIImagePickerController shown inside a popover, as a view inside of another controller (that is, it's not the root VC of the popover). It sports a Cancel button.

Can this button be killed in a popover? I can remove the button in the ABPeoplePicker*Controller that appears when picking Contacts by editing the private VC's navigation item on the fly, but this one eludes me (no UINavigationControllerDelegate methods are called by the UIIPC).


I think you can change it to something else (not sure about removing) because UIImagePickerController inherits UINavigationController. Then you can get

UINavigationBar *bar = picker.navigationBar;
[bar setHidden:NO];
bar.navigationItem.rightBarButtonItem = doneButton;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号