views:

164

answers:

1

The problem:

The Cancel button should not appear when the image picker is used in a popover, but it does.

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).

A: 

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;
vodkhang