隱藏狀態欄(statusBar)的兩種方法

默認情況下,程序啓動後頁面頂部會有一個狀態欄( statusBar),如下圖: 如果我們想要去掉狀態欄,有兩種辦法實現。 1,全局設置 這種方法修改後,整個應用的所有視圖都不顯示狀態欄。 (1)在  Info.plist 中添加如下配置 1 2 < key >UIViewControllerBasedStatusBarAppearance</ key > < false /> (2)在  Gene
相關文章
相關標籤/搜索