Skip to content

Instantly share code, notes, and snippets.

@darkseed
Created February 4, 2011 08:57
Show Gist options
  • Save darkseed/810895 to your computer and use it in GitHub Desktop.
Save darkseed/810895 to your computer and use it in GitHub Desktop.
@implementation UINavigationBar(Background)
-(void)drawRect:(CGRect)rect{
UIImage *navBgImage = [UIImage imageNamed:@"nav_bg.jpg"];
[navBgImage drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment