I try change to background of navigationBar.
Search.h:
#import <UIKit/UIKit.h>
@interface Search : UIViewController
@end
Search.m:
#import "Search.h"
@implementation Search
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
UIImage *image = [UIImage imageNamed:@"navigation_header.png"];
[self.navigationController.navigationBar setBackgroundImage:image forBarMetrics:UIBarMetricsDefault];
}
I can’t change navigation background.
Thanks.
This is actually simpler to do then you think. In your app delegate…
This will universally change your navigation bar background image.
Note: I believe
UINavigationBar's“appearance” property is available in iOS 5 and up.