如何从 Xamarin.Forms 的 iOS 项目中删除顶部栏?时间和“Carrier”字样在哪里
.. 或者至少测量一下它的高度?
只是为了确定..我不想看到电池,时间...我想隐藏红色矩形中的栏:
最佳答案
您可以在 AppDelegate.cs
中的 FinishedLaunching
方法 after LoadApplication (new App ());
在 iOS 项目上:
UIApplication.SharedApplication.StatusBarHidden = true;
同时将此添加到您的 info.plist
中:
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
关于c# - 如何从 Xamarin.Forms (iOS) 中删除顶部栏?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44511921/