mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-28 20:26:57 +02:00
Bug fix: The tabbar is hidden on Settings screen.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user