I got this image that I want to use in my navigation controller:
I'm setting it like this(following advice from this question):
UINavigationBar *theBar = self.navigationController.navigationBar;
if ( [theBar respondsToSelector:@selector(setBackgroundImage:forBarMetrics:)] ) {
UIImage *image = [UIImage imageNamed:@"cabecalho.jpg"];
[theBar setBackgroundImage:image forBarMetrics:UIBarMetricsDefault];
}
But when I run my app, I get this:
What do I do so my image can fit the navigation controller?
Thank you.