[Fast hint] Customize UINavigationBar with background image
Ok, it’s really really simple
for example we have a application like that
and we want to set that image to background from navigation bar
ok let's show a little the code
in the end of file appDelegate.m file, after @end put bellow code
@implementation UINavigationBar (CustomImage)
- (void)drawRect:(CGRect)rect
{
UIImage *image = [UIImage imageNamed: @"navbar-iphone.png"];
[image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
}
@end
and now...
let's see the result
For this hint is all up to the next
Thanks