White space instead of hidden tab bar

I use the UINavigationController inside the UITabBarController , and one of the screens of my navigation controller is UIImageView . When I want to show this image in full screen, I need to hide the navigation bar and the tab bar. I can hide the navigation bar correctly, but when I hide the tab bar, it leaves 50 pixels of white space. Any suggestion?

+7
source share
5 answers

Thanks to everyone. I found the best solution to my problem.

 MyImageViewController.hidesBottomBarWhenPushed = YES ; [self.navigationController pushViewController:MyImageViewController animated:YES]; 

This gave me the answer I wanted. Thanks for your share.

+7
source

I think you can show it on the model view controller. Place the model manager on the tabbar control panel.

 FullImageView*objFullImageView = [[FullImageView alloc] initWithNibName:@"FullImageView" bundle:nil]; objFullImageView.image = OriginalImage; UINavigationController *tempNav = [[[UINavigationController alloc] initWithRootViewController:objFullImageView] autorelease]; [objFullImageView release]; self.tabBarCtrl.modalPresentationStyle = UIModalPresentationPageSheet; [self.tabBarCtrl presentModalViewController:tempNav animated:YES]; 

FullImageView.h

 { UIImage *image; } @property(nonatomic, retain) UIImage *image; 

FullImageView.m

 @synthesize image; viewDidLoad /ViewWillApper { //Set image in your UIImageView } 
+2
source

You can increase the height of the image frame.

0
source

After several hours of research, this thread fixed my problem with a space when deleting tabs: hiding the TabBar when turning the iPhone device to the landscape

0
source

It's been quite a while since the original post, but I thought I could jump in and add my thoughts.

Another option would be to set the Hide bottom bar on push option directly to the Storyboard for all those controllers that are inserted into the navigation controller inside the panel controller. This also works in the iOS7 simulator / target, both on 3.5 "and 4".

0
source

All Articles