1

Is it possible to get the current color of the status bar in iOS? I know we can change the color but is it possible to programmatically get the current state of the status bar? e.g whether its UIStatusBarStyleLightContent or UIStatusBarStyleDefault

DevC
  • 6,982
  • 9
  • 45
  • 80

1 Answers1

3

You can get it like this:

UIStatusBarStyle currentStyle = [UIApplication sharedAppplication].statusBarStyle;
Rui Peres
  • 25,741
  • 9
  • 87
  • 137