mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
use UIWindow#rootViewController instead of UIWindow#addSubview
git-svn-id: https://zxing.googlecode.com/svn/trunk@2443 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
e1cf3fd237
commit
39cd6a78bb
|
@ -65,7 +65,7 @@
|
|||
}
|
||||
|
||||
// Override point for customization after application launch.
|
||||
[self.window addSubview:tabBarController.view];
|
||||
window.rootViewController = tabBarController;
|
||||
[self.window makeKeyAndVisible];
|
||||
|
||||
return YES;
|
||||
|
|
|
@ -29,8 +29,7 @@
|
|||
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||
// Override point for customization after app launch
|
||||
|
||||
[window addSubview:[navigationController view]];
|
||||
window.rootViewController = navigationController;
|
||||
[window makeKeyAndVisible];
|
||||
return YES;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue