forked from khanhduytran0/LiveContainer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LCTabBarController.m
25 lines (17 loc) · 947 Bytes
/
LCTabBarController.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#import "LCRootViewController.h"
#import "LCSettingsListController.h"
#import "LCTabBarController.h"
@implementation LCTabBarController
- (void)loadView {
[super loadView];
LCRootViewController* appTableVC = [LCRootViewController new];
appTableVC.title = @"Apps";
LCSettingsListController* settingsListVC = [LCSettingsListController new];
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.viewControllers = @[appNavigationController, settingsNavigationController];
}
@end