-
Notifications
You must be signed in to change notification settings - Fork 3k
Expand file tree
/
Copy pathExampleAppDelegate.m
More file actions
24 lines (18 loc) · 895 Bytes
/
ExampleAppDelegate.m
File metadata and controls
24 lines (18 loc) · 895 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
#import "ExampleAppDelegate.h"
#import "ExampleWKWebViewController.h"
@implementation ExampleAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// 1. Create the tab footer
UITabBarController *tabBarController = [[UITabBarController alloc] init];
// 2. Create the WKWebView example for devices >= iOS 8
if([WKWebView class]) {
ExampleWKWebViewController* WKWebViewExampleController = [[ExampleWKWebViewController alloc] init];
WKWebViewExampleController.tabBarItem.title = @"WKWebView";
[tabBarController addChildViewController:WKWebViewExampleController];
}
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.rootViewController = tabBarController;
[self.window makeKeyAndVisible];
return YES;
}
@end