Created
August 14, 2011 15:33
-
-
Save darkseed/1144990 to your computer and use it in GitHub Desktop.
Custom UINavigation background
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface UINavigationBar (MyCustomNavBar) | |
@end | |
@implementation UINavigationBar (MyCustomNavBar) | |
- (void) drawRect:(CGRect)rect { | |
//matching the button color with the bar color | |
[self setTintColor:[UIColor colorWithRed:0.85f green: 0 blue:0 alpha:1]]; | |
UIImage *barImage = [UIImage imageNamed:@"image.png"]; | |
[barImage drawInRect:rect]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment