設(shè)置狀態(tài)欄顏色時(shí)傅物,直接設(shè)置是不行的
// OC
[UIApplication sharedApplication].statusBarHidden = YES;
// Swift
UIApplication.sharedApplication().statusBarHidden = true;
需要在info.plist里設(shè)置
View controller-based status bar appearance 為 NO
設(shè)置狀態(tài)欄顏色時(shí)傅物,直接設(shè)置是不行的
// OC
[UIApplication sharedApplication].statusBarHidden = YES;
// Swift
UIApplication.sharedApplication().statusBarHidden = true;
需要在info.plist里設(shè)置
View controller-based status bar appearance 為 NO