Here is a solution to do that, add following code in your app delegate implementation file (.m) :
@interface UINavigationBar (MyCustomNavBar)
@end
@implementation UINavigationBar (MyCustomNavBar)
- (void) drawRect:(CGRect)rect {
UIImage *barImage = [UIImage imageNamed:@"background_image.png"];
[barImage drawInRect:rect];
}
@endAnd change the "background_image.png" to the image what you want. This add a category in all UINavationBar used in your application, and you will see a fancy UINavigationBar.
No comments:
Post a Comment