You can add this code on your AppDelegate.cs
inside FinishedLaunching
method after LoadApplication (new App ());
on iOS Project:
UIApplication.SharedApplication.StatusBarHidden = true;
also add this on your info.plist
:
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
In case of you want to hide programatically for each page. You have to create custom renderer for each Forms Page with UIViewController.
In UIViewController, you can override method like below
public partial class CustomViewController : UIViewController
{
public override bool PrefersStatusBarHidden()
{
return true;
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.