I'm trying to style the UINavigationBar
in Xamarin
with MonoTouch
. In the constructor of the UIViewController
I tried the following:
//this.NavigationController.NavigationBar.TintColor = UIColor.Magenta;
UINavigationBar.Appearance.TintColor = UIColor.Yellow;
But if I try to run this in the simulator there is nothing changed. Where should I place this code? How do I use a RGB color (with UIColor.FromRGB (0, 127, 14)
?) Is my code correct?