This part is fine:
...
if ([segue.identifier isEqualToString:@"ShowDetails"])
{
...
editDetailsViewController.hidesBottomBarWhenPushed = YES; // for hiding the TabBar
}
However, prepareForSegue
is called before the push.
If you want the toolbar to hide with an animation you should implement a Custom UISegue and animate the UIToolbar
in the transition.