There seems to be problem with hiding status bar in UIImagePicker/UIPopoverController , below code is used to hide status bar but in UIImagePickerController navigation breaks when swiped back(In the image below you can see back button is gone).Any solution for this?
-(BOOL)prefersStatusBarHidden
{
return YES;
}
-(void)viewWillAppear:(BOOL)animated
{
[[UIApplication sharedApplication] setStatusBarHidden:YES];
}
- (void)popoverControllerDidDismissPopover:(UIPopoverController *)popoverController
{
[[UIApplication sharedApplication] setStatusBarHidden:YES];
}
-(void)navigationController:(UINavigationController *)navigationController
willShowViewController:(UIViewController *)viewController
animated:(BOOL)animated
{
[[UIApplication sharedApplication] setStatusBarHidden:YES];
}
Aucun commentaire:
Enregistrer un commentaire