如何从Xamarin.Forms(iOS)删除顶部栏?

Ish*_*mas 1 c# xaml xamarin.ios xamarin xamarin.forms

如何从Xamarin.Forms的iOS项目中删除顶部栏?时间和“运营商”一词在哪里

在此处输入图片说明

..或至少测量其高度?

只是要确定..我不想看到电池,时间...我想将条形图隐藏在红色矩形中:

在此处输入图片说明

I P*_*ana 5

您可以在iOS Project 之后AppDelegate.cs内部FinishedLaunching方法中添加以下代码: LoadApplication (new App ());

UIApplication.SharedApplication.StatusBarHidden = true;
Run Code Online (Sandbox Code Playgroud)

也将此添加到您的info.plist

<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
Run Code Online (Sandbox Code Playgroud)