iOS set the color of the status bar

1. Set up the following properties in the file plist:

 

2. Set the delegate in

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
    UINavigationBar *bar = [UINavigationBar appearance];
    [bar setBarStyle:UIBarStyleBlackOpaque];

 

Reproduced in: https: //www.cnblogs.com/pretty-guy/p/4095939.html

Guess you like

Origin blog.csdn.net/weixin_34049948/article/details/93199893
Recommended