在info.plist文件中添加如下两行: Status bar is initially hidden 为YES iew controller-based status bar appearance 为NO