I set UINavigationBar
background image at root view controller, but i need to remove background image at detail view controller.
With Obj-C I use this code:
if ([[UINavigationBar class] respondsToSelector:@selector(appearance)])
{
[self.navigationController.navigationBar setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];
}
so when i use this code in MonoTouch:
this.NavigationController.NavigationBar.SetBackgroundImage(null, UIBarMetrics.Default);
i receive this error:
System.ArgumentNullExeption
Argument cannot be null
Parameter name: backgroundImage
How can I remove the background image?