在項目的info.plist文件中,添加以下兩對鍵值:
Status bar is initially hidden --> BOOL --> YES
View controller-based status bar appearance --> BOOL --> NO
Xcode6中隱藏狀態欄
原文:http://www.cnblogs.com/ilovecc/p/4071926.html