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?

    1 answer 1

    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/> 
    • <key> UIViewControllerBasedStatusBarAppearance </ key> <false /> tell me where to insert it? - Nazar Vozniy
    • In AppDelegate.m some code you need to insert? - Nazar Vozniy
    • @NazarVozniy raw is if you look at Info.plist in its original form (Open as -> Source Code). In AppDelegate.m, specify what statusBarStyle should initially be - VAndrJ