Remove setStatusBarOrientation due to deprecation

This commit is contained in:
Scott Ludwig 2016-01-20 11:00:39 -08:00
parent 589fdff1b3
commit c2d63ec443

View File

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