I am stuck in a problem many people experienced here before, but solutions to it mutate in time, as new iOS releases come up and APIs change. None of the previous solutions work for my present setup - XCode 4.2.1, iPhone simulator 5.0 or real iPhone 5.0, app targets iOS5, using ARC and Storyboard.
I have a classic Tabbed app -ie UITabBarController, in it 4 tabs...ignore the 2 to 4th tab.. The first tab hosts a UINavigationController with its rootviewcontroller being a UITableViewController. Now I am pushing 1 CustomUIViewController onto the stack.
The whole setup is visualy designed in Storyboard, the push is done by a segue.
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
self.hidesBottomBarWhenPushed = YES;
}
This effectively hides the tabbar exactly the same way as the iPod app does in iPhone.
But when i pop the CustomUIViewController from the stack, the TabBar does not come back. I was putting the
self.hidesBottomBarWhenPushed = NO;
to all possible and impossible places, but with no luck.
HOW can I bring my TabBar back?
I think you need to set
segue.destinationViewController.hidesBottomBarWhenPushed = YES;
instead of self.hides....