UINavigationBar:How to add background image with UINavigationController?

  [self.navigationBar setBackgroundImage:[UIImage imageNamed:@"yourpngfile.png"] forBarMetrics:UIBarMetricsDefault];

 

 use this method;

 

 

carefully :  self.navigationBar may use in Subclass of UINavigationController,not self.navigationController.navigationBar

 

 

posted @ 2012-07-17 14:25  snowlueng  阅读(196)  评论(0编辑  收藏  举报