在-Info.plist文件中添加两个属性Status bar is initially hidden和View controller-based status bar appearance,分别设置为YES和NO即可,如图所示: 问题解决!