Navigation: Add possibility to instantiate each tab bar item controller programmatically.

This commit is contained in:
SBiOSoftWhare
2021-05-20 21:29:08 +02:00
parent 9570d269b4
commit eefc7c5deb
12 changed files with 56 additions and 1 deletions
@@ -46,6 +46,13 @@
@implementation GroupsViewController
+ (instancetype)instantiate
{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
GroupsViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:@"GroupsViewController"];
return viewController;
}
- (void)finalizeInit
{
[super finalizeInit];
@@ -208,7 +215,7 @@
}];
[AppDelegate theDelegate].masterTabBarController.navigationItem.title = NSLocalizedStringFromTable(@"title_groups", @"Vector", nil);
[AppDelegate theDelegate].masterTabBarController.tabBar.tintColor = ThemeService.shared.theme.tintColor;
[AppDelegate theDelegate].masterTabBarController.tabBar.tintColor = ThemeService.shared.theme.tintColor;
}
- (void)viewWillDisappear:(BOOL)animated