There are two functions in ViewController.m:
- (void)style_light{ } - (void)style_default{ } What should I insert into these functions in order to change UIStatusBarStyleLightContent to UIStatusBarStyleDefault and back when they are called?
There are two functions in ViewController.m:
- (void)style_light{ } - (void)style_default{ } What should I insert into these functions in order to change UIStatusBarStyleLightContent to UIStatusBarStyleDefault and back when they are called?
Substitute:
- (void)style_light{ [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent; } - (void)style_default{ [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDefault; } //и почему snake_case? And in Info.plist specify
View controller-based status bar appearance NO
Raw:
<key>UIViewControllerBasedStatusBarAppearance</key> <false/> Source: https://ru.stackoverflow.com/questions/611551/
All Articles