The iOS 7 transparent status bar now uses white text rather than black.

main
Alex Szpakowski 2014-07-16 20:05:00 -03:00
parent b4d15ece6d
commit b21544c1dd
3 changed files with 13 additions and 1 deletions

View File

@ -169,8 +169,9 @@
animationCallback = callback; animationCallback = callback;
animationCallbackParam = callbackParam; animationCallbackParam = callbackParam;
if (animationCallback) if (animationCallback) {
[self startAnimation]; [self startAnimation];
}
} }
- (void)startAnimation - (void)startAnimation

View File

@ -36,5 +36,6 @@
- (NSUInteger)supportedInterfaceOrientations; - (NSUInteger)supportedInterfaceOrientations;
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient; - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient;
- (BOOL)prefersStatusBarHidden; - (BOOL)prefersStatusBarHidden;
- (UIStatusBarStyle)preferredStatusBarStyle;
@end @end

View File

@ -124,6 +124,16 @@
} }
} }
- (UIStatusBarStyle)preferredStatusBarStyle
{
#ifdef __IPHONE_7_0
return UIStatusBarStyleLightContent;
#else
/* This is only called in iOS 7+, so the return value isn't important. */
return UIStatusBarStyleBlackTranslucent;
#endif
}
@end @end
#endif /* SDL_VIDEO_DRIVER_UIKIT */ #endif /* SDL_VIDEO_DRIVER_UIKIT */