美文网首页Xamarin.FormsiOS 开发
xamarin.forms在vs中修改状态栏字体颜色为白色

xamarin.forms在vs中修改状态栏字体颜色为白色

作者: ycq_520 | 来源:发表于2016-07-29 09:57 被阅读105次

1:在 AppDelegate.cs, FinishedLaunching() 方法里加一下代码

UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false);

UIApplication.SharedApplication.SetStatusBarHidden(false, false);

2:在Info.plist:中加入

<key>UIViewControllerBasedStatusBarAppearance</key>

<false/>

<key>UIStatusBarHidden</key>

<true/>

相关文章

网友评论

    本文标题:xamarin.forms在vs中修改状态栏字体颜色为白色

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