What is the easiest way to change UINavigationBar background image and make the main UINavigationBar to scale to the background image size?
I designed a navigation bar that is not the size of my table view controller navigation bar, and now I imported the image to Xcode and I want to do something like:
[self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"BG.png"] forBarMetrics:UIBarMetricsDefault];
but that does not work, anyway I think that this way I will have a problem with the height since my designed nav is bigger.
How can I do this please?