Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Mehrbod Nikbakhsh
293 PointsHide bottom bar / tabbar during on push
I have a TabBarViewController app with three tabs. on page two I hide out the tabbar with animation. then using segue to push to another view (from two) , TabBar appears from nowhere.
what to do ?!
3 Answers
Stone Preston
42,016 Pointshide it again on the other view in prepareForSegue
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
//Hide the tab bar in your other view
if([segue.identifier isEqualToString:@"showOtherView"]) {
[segue.destinationViewController setHidesBottomBarWhenPushed:YES];
Mehrbod Nikbakhsh
293 PointsI had this code in second view. but it didn´t work.
Stone Preston
42,016 Pointsit only hides it for one view. If you push another view onto the stack the tab bar will appear again. So you need to hide it for each view you push onto the stack.
Mehrbod Nikbakhsh
293 Pointshmm right , thanks Stone .. i will try it now ;)
Mehrbod Nikbakhsh
293 PointsMehrbod Nikbakhsh
293 PointsI had this code in second view. but it didn´t work.