diff options
Diffstat (limited to 'backends/platform/iphone/iphone_main.m')
| -rw-r--r-- | backends/platform/iphone/iphone_main.m | 13 | 
1 files changed, 7 insertions, 6 deletions
diff --git a/backends/platform/iphone/iphone_main.m b/backends/platform/iphone/iphone_main.m index b01e9f3f34..6b709b0803 100644 --- a/backends/platform/iphone/iphone_main.m +++ b/backends/platform/iphone/iphone_main.m @@ -79,10 +79,7 @@ int main(int argc, char** argv) {  - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {  	// hide the status bar  	[UIHardware _setStatusBarHeight:0.0f]; -	//[self setStatusBarMode:2 orientation:0 duration:0.0f fenceID:0]; - -	//[self setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:NO]; -	[self setStatusBarHidden:YES animated:YES]; +	[self setStatusBarHidden:YES animated:NO];  	_window = [[UIWindow alloc] initWithContentRect:  [UIHardware fullScreenApplicationContentRect]];  	[_window retain]; @@ -103,9 +100,13 @@ int main(int argc, char** argv) {  - (void)applicationResume:(GSEventRef)event {  	[self removeApplicationBadge]; -	[UIHardware _setStatusBarHeight:0.0f]; -	[self setStatusBarHidden:YES animated:YES];  	[_view applicationResume]; +	 +	// Workaround, need to "hide" and unhide the statusbar to properly remove it, +	// since the Springboard has put it back without apparently flagging our application. +	[self setStatusBarHidden:NO animated:NO]; // hide status bar +	[UIHardware _setStatusBarHeight:0.0f]; +	[self setStatusBarHidden:YES animated:NO]; // hide status bar  }  - (void)deviceOrientationChanged:(GSEvent *)event {  | 
