The iOS 7 transparent status bar now uses white text rather than black. iOS-improvements
authorAlex Szpakowski <slime73@gmail.com>
Wed, 16 Jul 2014 20:05:00 -0300
branchiOS-improvements
changeset 9492cad5a9995bde
parent 9491 c652f2655d2a
child 9493 961d593034b5
The iOS 7 transparent status bar now uses white text rather than black.
src/video/uikit/SDL_uikitopenglview.m
src/video/uikit/SDL_uikitviewcontroller.h
src/video/uikit/SDL_uikitviewcontroller.m
     1.1 --- a/src/video/uikit/SDL_uikitopenglview.m	Wed Jul 16 16:12:20 2014 -0300
     1.2 +++ b/src/video/uikit/SDL_uikitopenglview.m	Wed Jul 16 20:05:00 2014 -0300
     1.3 @@ -169,8 +169,9 @@
     1.4      animationCallback = callback;
     1.5      animationCallbackParam = callbackParam;
     1.6  
     1.7 -    if (animationCallback)
     1.8 +    if (animationCallback) {
     1.9          [self startAnimation];
    1.10 +    }
    1.11  }
    1.12  
    1.13  - (void)startAnimation
     2.1 --- a/src/video/uikit/SDL_uikitviewcontroller.h	Wed Jul 16 16:12:20 2014 -0300
     2.2 +++ b/src/video/uikit/SDL_uikitviewcontroller.h	Wed Jul 16 20:05:00 2014 -0300
     2.3 @@ -36,5 +36,6 @@
     2.4  - (NSUInteger)supportedInterfaceOrientations;
     2.5  - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient;
     2.6  - (BOOL)prefersStatusBarHidden;
     2.7 +- (UIStatusBarStyle)preferredStatusBarStyle;
     2.8  
     2.9  @end
     3.1 --- a/src/video/uikit/SDL_uikitviewcontroller.m	Wed Jul 16 16:12:20 2014 -0300
     3.2 +++ b/src/video/uikit/SDL_uikitviewcontroller.m	Wed Jul 16 20:05:00 2014 -0300
     3.3 @@ -124,6 +124,16 @@
     3.4      }
     3.5  }
     3.6  
     3.7 +- (UIStatusBarStyle)preferredStatusBarStyle
     3.8 +{
     3.9 +#ifdef __IPHONE_7_0
    3.10 +    return UIStatusBarStyleLightContent;
    3.11 +#else
    3.12 +    /* This is only called in iOS 7+, so the return value isn't important. */
    3.13 +    return UIStatusBarStyleBlackTranslucent;
    3.14 +#endif
    3.15 +}
    3.16 +
    3.17  @end
    3.18  
    3.19  #endif /* SDL_VIDEO_DRIVER_UIKIT */