美文网首页
状态栏前景色

状态栏前景色

作者: iPhoneXSMax | 来源:发表于2019-06-27 14:15 被阅读0次

在plist文件中,把View controller-based status bar appearance设置为NO。然后写如下代码:

[[UIApplicationsharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];

[[UIApplicationsharedApplication] setStatusBarStyle:UIStatusBarStyleLightContentanimated:YES];

相关文章

网友评论

      本文标题:状态栏前景色

      本文链接:https://www.haomeiwen.com/subject/dbfrcctx.html