OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 6 #error "This file requires ARC support." |
| 7 #endif |
| 8 |
| 9 #import "remoting/client/ios/chromiumoting/app_delegate.h" |
| 10 |
| 11 #include "base/logging.h" |
| 12 |
| 13 #include "ui/base/l10n/l10n_util.h" |
| 14 #include "ui/base/resource/resource_bundle.h" |
| 15 #import "remoting/client/ios/chromiumoting/example_view_controller.h" |
| 16 |
| 17 @implementation AppDelegate |
| 18 |
| 19 @synthesize window = _window; |
| 20 |
| 21 - (BOOL)application:(UIApplication*)application |
| 22 willFinishLaunchingWithOptions:(NSDictionary*)launchOptions { |
| 23 self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; |
| 24 self.window.backgroundColor = [UIColor whiteColor]; |
| 25 return YES; |
| 26 } |
| 27 |
| 28 - (BOOL)application:(UIApplication*)application |
| 29 didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { |
| 30 ExampleViewController* vc = [[ExampleViewController alloc] init]; |
| 31 |
| 32 self.window.rootViewController = vc; |
| 33 |
| 34 [self.window makeKeyAndVisible]; |
| 35 return YES; |
| 36 } |
| 37 |
| 38 @end |
OLD | NEW |