diff options
author | Alex Szpakowski <slime73@gmail.com> | 2014-07-16 20:05:00 -0300 |
---|---|---|
committer | Alex Szpakowski <slime73@gmail.com> | 2014-07-16 20:05:00 -0300 |
commit | f3ef019576eb0568cf1fc4ef8189744ea8554202 (patch) | |
tree | 71e15ce44d065752bd195fa68cb1ade4c78da5a6 /src/video/uikit/SDL_uikitviewcontroller.m | |
parent | 7f18a71fd8dc3fd06bd5dc2a5bc117554c865363 (diff) | |
download | sdl-f3ef019576eb0568cf1fc4ef8189744ea8554202.tar.gz |
The iOS 7 transparent status bar now uses white text rather than black.
Diffstat (limited to 'src/video/uikit/SDL_uikitviewcontroller.m')
-rw-r--r-- | src/video/uikit/SDL_uikitviewcontroller.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video/uikit/SDL_uikitviewcontroller.m b/src/video/uikit/SDL_uikitviewcontroller.m index 3bedcc4ec..433b91b2e 100644 --- a/src/video/uikit/SDL_uikitviewcontroller.m +++ b/src/video/uikit/SDL_uikitviewcontroller.m @@ -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 */ |