Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Can't make the iOS app full-screen

$
0
0

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!


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>