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.
This commit is contained in:
meancoot 2013-02-21 20:21:46 -05:00
parent 70d0ab91b7
commit 5a7cee4e6e
2 changed files with 9 additions and 1 deletions

View File

@ -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)

View File

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