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
Asked
Active
Viewed 271 times
1

DevC
- 6,982
- 9
- 45
- 80
1 Answers
3
You can get it like this:
UIStatusBarStyle currentStyle = [UIApplication sharedAppplication].statusBarStyle;

Rui Peres
- 25,741
- 9
- 87
- 137
-
Good answer. Just incase any body is interested the return time is an NSInteger. – DevC Mar 18 '15 at 11:08