OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2013 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 #pragma mark - UIApplicationDelegate methods | 24 #pragma mark - UIApplicationDelegate methods |
25 | 25 |
26 - (BOOL)application:(UIApplication *)application | 26 - (BOOL)application:(UIApplication *)application |
27 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | 27 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { |
28 RTCInitFieldTrials(RTCFieldTrialOptionsSendSideBwe); | 28 RTCInitFieldTrials(RTCFieldTrialOptionsSendSideBwe); |
29 RTCInitializeSSL(); | 29 RTCInitializeSSL(); |
30 RTCSetupInternalTracer(); | 30 RTCSetupInternalTracer(); |
31 _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | 31 _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; |
32 [_window makeKeyAndVisible]; | 32 [_window makeKeyAndVisible]; |
33 ARDMainViewController *viewController = [[ARDMainViewController alloc] init]; | 33 ARDMainViewController *viewController = [[ARDMainViewController alloc] init]; |
34 _window.rootViewController = viewController; | 34 |
| 35 UINavigationController *root = |
| 36 [[UINavigationController alloc] initWithRootViewController:viewController]
; |
| 37 root.navigationBar.translucent = NO; |
| 38 _window.rootViewController = root; |
35 | 39 |
36 #if defined(NDEBUG) | 40 #if defined(NDEBUG) |
37 // In debug builds the default level is LS_INFO and in non-debug builds it is | 41 // In debug builds the default level is LS_INFO and in non-debug builds it is |
38 // disabled. Continue to log to console in non-debug builds, but only | 42 // disabled. Continue to log to console in non-debug builds, but only |
39 // warnings and errors. | 43 // warnings and errors. |
40 RTCSetMinDebugLogLevel(RTCLoggingSeverityWarning); | 44 RTCSetMinDebugLogLevel(RTCLoggingSeverityWarning); |
41 #endif | 45 #endif |
42 | 46 |
43 return YES; | 47 return YES; |
44 } | 48 } |
45 | 49 |
46 - (void)applicationWillTerminate:(UIApplication *)application { | 50 - (void)applicationWillTerminate:(UIApplication *)application { |
47 RTCShutdownInternalTracer(); | 51 RTCShutdownInternalTracer(); |
48 RTCCleanupSSL(); | 52 RTCCleanupSSL(); |
49 } | 53 } |
50 | 54 |
51 @end | 55 @end |
OLD | NEW |