From c2d63ec44302364461ff9a5c06fcc84da6fd2373 Mon Sep 17 00:00:00 2001 From: Scott Ludwig Date: Wed, 20 Jan 2016 11:00:39 -0800 Subject: [PATCH] Remove setStatusBarOrientation due to deprecation --- game/iphone/iphone.mm | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/game/iphone/iphone.mm b/game/iphone/iphone.mm index 053ce1f..e94b62c 100644 --- a/game/iphone/iphone.mm +++ b/game/iphone/iphone.mm @@ -132,20 +132,6 @@ IPhoneAppDelegate *g_appDelegate; [m_vcwi initiateWebView:title withUrl:url]; } -#if 0 -- (void)application:(UIApplication *)app - willChangeStatusBarOrientation:(UIInterfaceOrientation)orientation - duration:(NSTimeInterval)duration -{ - // This prevents the view from autorotating to portrait in the simulator - if ((orientation == UIInterfaceOrientationPortrait) || - (orientation== UIInterfaceOrientationPortraitUpsideDown)) { - [app setStatusBarOrientation: - UIInterfaceOrientationLandscapeRight animated:NO]; - } -} -#endif - - (void)applicationDidFinishLaunching:(UIApplication *)application { // Create the window and view @@ -172,10 +158,6 @@ IPhoneAppDelegate *g_appDelegate; [m_window addSubview:m_view]; [m_window makeKeyAndVisible]; - // Must do this after makeKeyAndVisible, in order for it all to rotate - [application setStatusBarOrientation:UIInterfaceOrientationLandscapeRight - animated:NO]; - // Alloc the key directories [self allocPaths];