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
@@ -22,6 +22,8 @@
*/
@interface PeopleViewController : RecentsViewController <UITableViewDataSource, MXKDataSourceDelegate>
+ (instancetype)instantiate;
/**
Scroll the next room with missed notifications to the top.
*/
@@ -43,6 +43,13 @@
@implementation PeopleViewController
+ (instancetype)instantiate
{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
PeopleViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:@"PeopleViewController"];
return viewController;
}
- (void)finalizeInit
{
[super finalizeInit];