I have an app that has a tab bar & nav bar for normal interaction. One of my screens is a large portion of text, so I allow the user to tap to go full screen (sort of l
Have you set your view controller's hidesBottomBarWhenPushed
property to YES
? You need to set this in your initWithNibName:bundle:
or initWithCoder:
method. When it gets pushed to the nav controller, this should hide the tab bar and make the content view extend down to the bottom.
Put the code in a prepare for segue like this, works perfectly for me:
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([[segue identifier] isEqualToString:@"ViewPhoto"]) {
ImageView *vc = [segue destinationViewController];
NSInteger selectedIndex = [[self.tableView indexPathForSelectedRow] row];
NSString *Title = [photoNames objectAtIndex:selectedIndex];
[vc setSelectedTitle:[NSString stringWithFormat:@"%@", Title]];
vc.hidesBottomBarWhenPushed = YES;
}
}
If the UITabBarController is pushed by a rootViewController (navigationController). You can try the following:
First hide the status Bar / Tab Bar;
[self.navigationController pushViewController:aBlankViewController animated:NO];
[self.navigationController popViewControllerAnimated:NO];
You should be able to reclaim the white space, though the screen will shock during the adjustment...