mirror of https://github.com/encounter/SDL.git
The iOS 7 transparent status bar now uses white text rather than black.
This commit is contained in:
parent
b4d15ece6d
commit
b21544c1dd
|
@ -169,8 +169,9 @@
|
|||
animationCallback = callback;
|
||||
animationCallbackParam = callbackParam;
|
||||
|
||||
if (animationCallback)
|
||||
if (animationCallback) {
|
||||
[self startAnimation];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)startAnimation
|
||||
|
|
|
@ -36,5 +36,6 @@
|
|||
- (NSUInteger)supportedInterfaceOrientations;
|
||||
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient;
|
||||
- (BOOL)prefersStatusBarHidden;
|
||||
- (UIStatusBarStyle)preferredStatusBarStyle;
|
||||
|
||||
@end
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue