Saturday, March 27, 2010

How do we change the appearance of nav bar throughout the app?

Add this at the top of app delegate ..

@implementation UINavigationBar(MyOwn)
- (void)drawRect:(CGRect)rect {
UIImage *image = [UIImage imageNamed:@"MyOwmImage.png"];
[image drawInRect:rect];

Now if we set the tint color of the nav bar then that will be used as the background color for all bar button items.

Like it?

No comments:

Post a Comment