0

i'm trying to se an image for the background of the navigation bar, and i'm doing this like i do in iOS6:

[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"Navbar.png"] forBarMetrics:UIBarMetricsDefault];

this is the image:

enter image description here

and this is the result when i run:

enter image description here

on iOS 6 works perfect, instead on iOS 7 have that problem...

Piero
  • 9,173
  • 18
  • 90
  • 160
  • May be this link could be helpufl: http://stackoverflow.com/questions/17361500/how-to-set-navigation-bar-image-ins-ios-7 – RFG Sep 22 '13 at 08:10
  • it's the same i have write above, how can help me? – Piero Sep 22 '13 at 08:19

1 Answers1

0

Try to add this to your navigation Controller:

self.navigationController.navigationBar.tintColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Navbar.png"]];
user1053839
  • 390
  • 1
  • 3
  • 10