step 1:在Appdelegate.m里面加入[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]
step 2:去info.plist文件里面设置View controller–based status bar appearance 为NO.
效果图如下:
step 1:在Appdelegate.m里面加入[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]
step 2:去info.plist文件里面设置View controller–based status bar appearance 为NO.
效果图如下:
本文标题: iOS下状态栏颜色设置
本文链接:https://www.haomeiwen.com/subject/xuwxettx.html
网友评论