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;
|
animationCallback = callback;
|
||||||
animationCallbackParam = callbackParam;
|
animationCallbackParam = callbackParam;
|
||||||
|
|
||||||
if (animationCallback)
|
if (animationCallback) {
|
||||||
[self startAnimation];
|
[self startAnimation];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)startAnimation
|
- (void)startAnimation
|
||||||
|
|
|
@ -36,5 +36,6 @@
|
||||||
- (NSUInteger)supportedInterfaceOrientations;
|
- (NSUInteger)supportedInterfaceOrientations;
|
||||||
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient;
|
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient;
|
||||||
- (BOOL)prefersStatusBarHidden;
|
- (BOOL)prefersStatusBarHidden;
|
||||||
|
- (UIStatusBarStyle)preferredStatusBarStyle;
|
||||||
|
|
||||||
@end
|
@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
|
@end
|
||||||
|
|
||||||
#endif /* SDL_VIDEO_DRIVER_UIKIT */
|
#endif /* SDL_VIDEO_DRIVER_UIKIT */
|
||||||
|
|
Loading…
Reference in New Issue