xamarin.forms在vs中修改状态栏字体颜色为白色
2016-07-29 本文已影响105人
ycq_520
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/>