Bug fix: The tabbar is hidden on Settings screen.

This commit is contained in:
giomfo
2015-08-28 22:54:31 +02:00
parent a70d1cb69c
commit 589d470c1f
+18 -10
View File
@@ -171,17 +171,14 @@
[self.navigationController.navigationBar removeGestureRecognizer:navigationBarTapGesture];
// Check whether the user is still navigating into recents tab
if ([AppDelegate theDelegate].masterTabBarController.selectedIndex == TABBAR_RECENTS_INDEX)
// Chat screen should be displayed without tabbar, but hidesBottomBarWhenPushed flag has no effect in case of splitviewcontroller use.
// Trick: on iOS 8 and later the tabbar is hidden manually for the secondary view controllers of the splitviewcontroller
// when the primary view controller is hidden.
// Note:'displayMode' property is available in UISplitViewController for iOS 8 and later.
if (self.splitViewController && [self.splitViewController respondsToSelector:@selector(displayMode)])
{
// Chat screen should be displayed without tabbar, but hidesBottomBarWhenPushed flag has no effect in case of splitviewcontroller use.
// Trick: on iOS 8 and later the tabbar is hidden manually for the secondary viewcontrollers of the splitviewcontroller.
// Note:'displayMode' property is available in UISplitViewController for iOS 8 and later.
if (self.splitViewController && [self.splitViewController respondsToSelector:@selector(displayMode)])
{
self.tabBarController.tabBar.hidden = YES;
[self.splitViewController.view setNeedsLayout];
}
self.tabBarController.tabBar.hidden = YES;
[self.splitViewController.view setNeedsLayout];
}
}
@@ -204,6 +201,17 @@
}
}
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
// Restore the tabbar by defaut when the user leaves the recents tab
if ([AppDelegate theDelegate].masterTabBarController.selectedIndex != TABBAR_RECENTS_INDEX)
{
self.tabBarController.tabBar.hidden = NO;
}
}
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
return 35;