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