Hi!
I'm trying to adapt my current iOS app using Xamarin.Forms. Everything works OK, except I can't make the app full-screen.
I previously override PrefersStatusBarHidden
in my root UIViewController
, and the app became full-screen, like this:
public class MainViewController : UIViewController
{
public MainViewController() : base()
{
}
public override void ViewDidLoad()
{
base.ViewDidLoad();
this.PrefersStatusBarHidden();
this.SetNeedsStatusBarAppearanceUpdate();
}
public override bool PrefersStatusBarHidden()
{
return true;
}
}
I have tried creating a custom PageRenderer
for my main UIViewController
and override the same method, with no luck.
Any ideas? This feature is key to our app.
Thanks!