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];
}
@end
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?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment