forked from TimOliver/TOWebViewController
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTOAppDelegate.m
More file actions
32 lines (23 loc) · 827 Bytes
/
TOAppDelegate.m
File metadata and controls
32 lines (23 loc) · 827 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
32
//
// TOAppDelegate.m
// TOWebViewControllerExample
//
// Created by Tim Oliver on 6/05/13.
// Copyright (c) 2013 Tim Oliver. All rights reserved.
//
#import "TOAppDelegate.h"
#import "TOViewController.h"
@implementation TOAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
//Create the main window
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.viewController = [[TOViewController alloc] init];
//Push to a navigation controller
self.navController = [[UINavigationController alloc] initWithRootViewController:self.viewController];
//present on screen
self.window.rootViewController = self.navController;
[self.window makeKeyAndVisible];
return YES;
}
@end