Feature/3557 test element 1 9 5

This commit is contained in:
Frank Rotermund
2022-09-21 09:32:35 +00:00
parent c5c0c6fdc9
commit c7c4b69b5e
10 changed files with 48 additions and 33 deletions
@@ -104,20 +104,6 @@
// Note: UITabBarViewController should not be embed in a UINavigationController (https://github.com/vector-im/riot-ios/issues/3086)
[self vc_removeBackTitle];
/**
* Remove unused ViewController Home & Groups from TabBarViewController array.
* In a later release it will be may be deactivated again and this code
* can be removed.
*
* Furthermore the code set the select viewcontroller to people.
*/
NSMutableArray *tbViewControllers = [NSMutableArray arrayWithArray:[self viewControllers]];
[tbViewControllers removeLastObject]; // remove GroupsViewController from tabbar
[tbViewControllers removeLastObject]; // remove HomeViewController from tabbar
self.viewControllers = tbViewControllers;
self.selectedIndex = TABBAR_PEOPLE_INDEX;
[self setupTitleView];
titleView.titleLabel.text = [VectorL10n allChatsTitle];