在IOS9以后寥掐,常規(guī)方法已經(jīng)沒有效果,常規(guī)方法就是:
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
需要在info.Plist文件里添加字段參數(shù)才可以正常顯示:
View controller-based status bar appearance 設(shè)置成No辛臊,默認(rèn)為Yes
在IOS9以后寥掐,常規(guī)方法已經(jīng)沒有效果,常規(guī)方法就是:
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
需要在info.Plist文件里添加字段參數(shù)才可以正常顯示:
View controller-based status bar appearance 設(shè)置成No辛臊,默認(rèn)為Yes