I am doing a multi view app, in that I have 4 tabs, and I have view controllers in each tab. In one tab I have grouped table view controller, on click of that tab it will go to that grouped table view. Every thing is going fine.
But last row of the table is hidden under tab bar, so I need to hide the tab bar when I enter into that screen. How can I do this?
I am using this in Appdelegate to create tabs programmatically.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
UINavigationController *localNavigationController;
tabBarController = [[UITabBarController alloc] init];
NSMutableArray *localControllersArray = [[NSMutableArray alloc] initWithCapacity:5];
//add first tab View Controller
RootViewController *ViewController;
ViewController = [[RootViewController alloc] initWithTabBar];
localNavigationController = [[UINavigationController alloc] initWithRootViewController:ViewController];
[localControllersArray addObject:localNavigationController];
[localNavigationController release];
[ViewController release];
//add second tab View Controller
StudentDataEntry *GroupViewController;
GroupViewController = [[StudentDataEntry alloc] initWithTabBar];
localNavigationController = [[UINavigationController alloc]
initWithRootViewController:GroupViewController];
[localControllersArray addObject:localNavigationController];
[localNavigationController release];
[GroupViewController release];
}
if your last row is not visible in your view then there is no need to hide tab bar for that you have to make your table view height according to that, a tab bar is 48 px so minus this 48 px height from your table view height and also if there is a navigation bar at the top then also minus 44 more px from height then it will be visible. And also you can set content inset for table view to make it visible.