1、在info.plist中添加如下配置 或者是<key>UIViewControllerBasedStatusBarAppearance</key> 2、在 General -> Deployment Info 中,将 Status Bar Style 设置成 Light。重新运行程序即可看到效果