I have the UIImagePickerController as a content View Controller for the UIPopoverController. I need to detect when the popover has just finished presented (has just showed up).
The UIImagePickerDelegate is also a UINavigationControllerDelegate.
Your class should implement UINavigationControllerDelegate and include the following:
-(void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
// [navigationController setNavigationBarHidden:YES];
[[UIApplication sharedApplication] setStatusBarHidden:YES]; // This one works for me: OP
}
I've tested this and it hides the navigation bar. I am not sure if doing so conflicts with the HIG though.
Thise should help:
You have delegates for both