From 5a7cee4e6e03625be3c09cb302679905ffe2e768 Mon Sep 17 00:00:00 2001 From: meancoot Date: Thu, 21 Feb 2013 20:21:46 -0500 Subject: [PATCH] ios: Immediately hide the exit bar if the device is rotated (after rotation its size would be wrong.) Fix status bar not being visible when a new instance is started. --- ios/RetroArch/RAGameView.m | 6 ++++++ ios/RetroArch/RetroArch_iOS.m | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ios/RetroArch/RAGameView.m b/ios/RetroArch/RAGameView.m index 2f62be7087..1605a48736 100644 --- a/ios/RetroArch/RAGameView.m +++ b/ios/RetroArch/RAGameView.m @@ -82,6 +82,12 @@ static bool is_syncing = true; } } +- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration +{ + _notifyButton.alpha = 0.0f; + _notifyLabel.alpha = 0.0f; +} + - (void)iterate { while (_isRunning && !_isPaused) diff --git a/ios/RetroArch/RetroArch_iOS.m b/ios/RetroArch/RetroArch_iOS.m index ea0e438763..2271b23247 100644 --- a/ios/RetroArch/RetroArch_iOS.m +++ b/ios/RetroArch/RetroArch_iOS.m @@ -78,7 +78,7 @@ extern uint32_t ios_current_touch_count; - (void)setViewer:(UIViewController*)theView { _navigator = nil; - [[UIApplication sharedApplication] setStatusBarHidden:theView ? YES : NO withAnimation:UIStatusBarAnimationSlide]; + [[UIApplication sharedApplication] setStatusBarHidden:theView ? YES : NO withAnimation:UIStatusBarAnimationNone]; _window.rootViewController = theView; } @@ -110,6 +110,8 @@ extern uint32_t ios_current_touch_count; self.settings_button.target = self; self.settings_button.action = @selector(show_settings); + [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone]; + // Setup window _navigator = [[UINavigationController alloc] init]; [_navigator pushViewController: [[RAModuleList alloc] init] animated:YES];