Skip to content

Commit

Permalink
The iOS 7 transparent status bar now uses white text rather than black.
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Jul 16, 2014
1 parent b4d15ec commit b21544c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/uikit/SDL_uikitopenglview.m
Expand Up @@ -169,8 +169,9 @@ - (void)setAnimationCallback:(int)interval
animationCallback = callback;
animationCallbackParam = callbackParam;

if (animationCallback)
if (animationCallback) {
[self startAnimation];
}
}

- (void)startAnimation
Expand Down
1 change: 1 addition & 0 deletions src/video/uikit/SDL_uikitviewcontroller.h
Expand Up @@ -36,5 +36,6 @@
- (NSUInteger)supportedInterfaceOrientations;
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient;
- (BOOL)prefersStatusBarHidden;
- (UIStatusBarStyle)preferredStatusBarStyle;

@end
10 changes: 10 additions & 0 deletions src/video/uikit/SDL_uikitviewcontroller.m
Expand Up @@ -124,6 +124,16 @@ - (BOOL)prefersStatusBarHidden
}
}

- (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 */
Expand Down

0 comments on commit b21544c

Please sign in to comment.