設(shè)置info.plist 添加 UIViewControllerBasedStatusBarAppearance 字段,設(shè)置NO
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
3.最近又遇到一個(gè)坑.想設(shè)置在啟動(dòng)的時(shí)候隱藏狀態(tài)欄,之前一直在info.plist 設(shè)置
Status bar is initially hidden 值 YES
就可以但是這次死活不管用.最后發(fā)現(xiàn)項(xiàng)目中有兩個(gè)info.plist,設(shè)置的位置不對(duì),我去~