public override void ViewDidAppear(bool animated)
{
NavigationController.NavigationBar.BackgroundColor = UIColor.Yellow;
}
If you want to change the navigation bar color throughout your entire iOS app add this to your AppDelegate FinishedLaunching method:
You can also edit the text attributes for the navigation bar by doing the following:
As for the status bar if you want to change the status bar icons to white instead of default black, for example, create a class for your navigation controller and override UIStatusBarStyle
This would work for your NavigationController and any child controllers of it.
UINavigationBar.Appearance.BarTintColor = UIColor.YourColor;
You can also edit the text attributes for the navigation bar by doing the following:
UINavigationBar.Appearance.SetTitleTextAttributes { new UITextAttributes { TextColor = UIColor.White}};
As for the status bar if you want to change the status bar icons to white instead of default black, for example, create a class for your navigation controller and override UIStatusBarStyle
public override UIStatusBarStyle PreferredStatusBarStyle ()
{
return UIStatusBarStyle.LightContent;
}
This would work for your NavigationController and any child controllers of it.