diff --git a/iphone/Barcodes/Classes/BarcodesAppDelegate.m b/iphone/Barcodes/Classes/BarcodesAppDelegate.m index fc7a7f9b1..ca2515e76 100644 --- a/iphone/Barcodes/Classes/BarcodesAppDelegate.m +++ b/iphone/Barcodes/Classes/BarcodesAppDelegate.m @@ -65,7 +65,7 @@ } // Override point for customization after application launch. - [self.window addSubview:tabBarController.view]; + window.rootViewController = tabBarController; [self.window makeKeyAndVisible]; return YES; diff --git a/iphone/ScanTest/Classes/ScanTestAppDelegate.m b/iphone/ScanTest/Classes/ScanTestAppDelegate.m index 2197312a7..5cc011b34 100644 --- a/iphone/ScanTest/Classes/ScanTestAppDelegate.m +++ b/iphone/ScanTest/Classes/ScanTestAppDelegate.m @@ -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; }