Need to change Status Bar color change

Hi,

I have set Light Content in status bar style in Info.plist. The status bar color is changed on launch screen.

But It's not changing in my xaml pages. Here I have to change the status bar color in my all xaml pages in iOS.

Answers

  • NicolasHotterbeekxNicolasHotterbeekx USMember ✭✭✭

    As @CurtisHarrison stated in this post: https://forums.xamarin.com/discussion/17922/navigationpage-statusbar-color

    In AppDelegate.cs:

        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Forms.Init();
            UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false);
            UIApplication.SharedApplication.SetStatusBarHidden(false, false);
            LoadApplication(new App());
    
            return base.FinishedLaunching(app, options);
        }
    

    In Info.plist:

    <key>UIViewControllerBasedStatusBarAppearance</key>
    <false/>
    <key>UIStatusBarHidden</key>
    <true/>
    
Sign In or Register to comment.