@@ -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
+}
+
#endif /* SDL_VIDEO_DRIVER_UIKIT */