找到工程中的Supporting Files/工程名-info.plist
添加设置
1、status bar is initially hidden=YES
2、View Controller-based status bar application=NO