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,9 +169,10 @@
animationCallback = callback;
animationCallbackParam = callbackParam;
if (animationCallback)
if (animationCallback) {
[self startAnimation];
}
}
- (void)startAnimation
{

View File

@ -36,5 +36,6 @@
- (NSUInteger)supportedInterfaceOrientations;
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient;
- (BOOL)prefersStatusBarHidden;
- (UIStatusBarStyle)preferredStatusBarStyle;
@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
#endif /* SDL_VIDEO_DRIVER_UIKIT */