如何从 Xamarin.Forms 的 iOS 项目中删除顶部栏?时间和“Carrier”字样在哪里
.. 或者至少测量一下它的高度?
只是为了确定..我不想看到电池,时间...我想隐藏红色矩形中的栏:
请您参考如下方法:
您可以在 AppDelegate.cs 中的 FinishedLaunching 方法 after LoadApplication (new App ()); 在 iOS 项目上:
UIApplication.SharedApplication.StatusBarHidden = true;
同时将此添加到您的 info.plist 中:
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
