-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAppDelegate.m
More file actions
executable file
·31 lines (21 loc) · 902 Bytes
/
AppDelegate.m
File metadata and controls
executable file
·31 lines (21 loc) · 902 Bytes
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
26
27
28
29
30
31
/*
AppDelegate.m
Created by coder4869 on 7/27/16.
Copyright © 2016 coder4869. All rights reserved.
*/
#import "AppDelegate.h"
#import "ViewController.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
ViewController *vc = [[ViewController alloc] init];
[vc.view setBackgroundColor:[UIColor whiteColor]];
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
UITabBarController *tabC = [[UITabBarController alloc] init];
tabC.viewControllers = @[nav, nav, nav];
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
[self.window setRootViewController:tabC];
[self.window makeKeyAndVisible];
return YES;
}
@end