mirror of
https://github.com/opa334/TrollStore.git
synced 2024-12-04 15:00:39 +08:00
27 lines
990 B
Mathematica
27 lines
990 B
Mathematica
|
#import "TSRootViewController.h"
|
||
|
#import "TSAppTableViewController.h"
|
||
|
#import "TSSettingsListController.h"
|
||
|
|
||
|
@implementation TSRootViewController
|
||
|
|
||
|
- (void)loadView {
|
||
|
[super loadView];
|
||
|
|
||
|
TSAppTableViewController* appTableVC = [[TSAppTableViewController alloc] init];
|
||
|
appTableVC.title = @"Apps";
|
||
|
|
||
|
TSSettingsListController* settingsListVC = [[TSSettingsListController alloc] init];
|
||
|
settingsListVC.title = @"Settings";
|
||
|
|
||
|
UINavigationController* appNavigationController = [[UINavigationController alloc] initWithRootViewController:appTableVC];
|
||
|
UINavigationController* settingsNavigationController = [[UINavigationController alloc] initWithRootViewController:settingsListVC];
|
||
|
|
||
|
appNavigationController.tabBarItem.image = [UIImage systemImageNamed:@"square.stack.3d.up.fill"];
|
||
|
settingsNavigationController.tabBarItem.image = [UIImage systemImageNamed:@"gear"];
|
||
|
|
||
|
self.title = @"Root View Controller";
|
||
|
self.viewControllers = @[appNavigationController, settingsNavigationController];
|
||
|
}
|
||
|
|
||
|
@end
|