Is it possible to hide the tabbar when a button is pressed to allow a full screen view of the conten
Posted
by Jonah
on Stack Overflow
See other posts from Stack Overflow
or by Jonah
Published on 2009-07-30T21:44:36Z
Indexed on
2010/04/27
23:13 UTC
Read the original article
Hit count: 509
I have a UITabBar in the detail view of my navigation based application. I am storing text and images in a tableview and would like the user to be able to tap on a cell to hide the navigation controller and the tabbar for full screen viewing of the content.
I found this code for hiding the top bars, but it does not seem as easy to hide the tabbar.
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:YES];
[self.navigationController setNavigationBarHidden:YES animated:YES];
Does anyone know how to do this?
This code does not work to hide the tabBar once the view is already loaded.
yourTabViewController.hidesBottomBarWhenPushed = YES;
© Stack Overflow or respective owner