Can not be able to change the top bar background color! (IOS)

arminmosaffaiearminmosaffaie ✭✭Member ✭✭

I have tried several ways: i have tried UINavigationBar.Appearance.BarTintColor = UIColor.FromHSB(351, 86, 95);
and to add it in xaml but nothing seems to work any ideas?

Best Answer


  • BushbertBushbert ✭✭✭ Member ✭✭✭

    If you’re using a custom renderer, make sure the code is in the viewdidload event.

  • seanydaseanyda ✭✭✭✭✭ GBMember ✭✭✭✭✭

    Make sure you have this in your info.plist


    and you can set the color from Xamarin.Forms NavigationBar Property.

    MainPage = new NavigationPage(new TestCameraPage()) { BarTextColor = Color.White };
Sign In or Register to comment.