Forum Xamarin.iOS

Remove Navigation Bar Background Image

I am using Xamarin Studio Version 5.10.2 (build 56). I wanted to hide navigation bar background image for one of the view.
I try below code to remove NavigationBar background but I see the background image there which was set on root view controller.

this.NavigationController.NavigationBar.SetBackgroundImage (new UIImage(), UIBarMetrics.Default);

I also tried below code, but that is also not working.

this.NavigationController.NavigationBar.SetBackgroundImage (null, UIBarMetrics.Default);

I am not getting any error either.

Sign In or Register to comment.