mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-04-08 11:31:27 -06:00
Remove setStatusBarOrientation due to deprecation
This commit is contained in:
parent
589fdff1b3
commit
c2d63ec443
@ -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];
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user