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:
smparkes@smparkes.net 2012-10-03 00:15:48 +00:00
parent e1cf3fd237
commit 39cd6a78bb
2 changed files with 2 additions and 3 deletions

View file

@ -65,7 +65,7 @@
}
// Override point for customization after application launch.
[self.window addSubview:tabBarController.view];
window.rootViewController = tabBarController;
[self.window makeKeyAndVisible];
return YES;

View file

@ -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;
}