Created
October 27, 2010 03:47
-
-
Save kernel1983/648397 to your computer and use it in GitHub Desktop.
custom NavigationBar bg
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
//.h file | |
@interface NavigationBar : UINavigationBar { | |
} | |
- (void)drawRect:(CGRect)rect; | |
@end | |
//.m file | |
@implementation NavigationBar | |
- (void)drawRect:(CGRect)rect | |
{ | |
UIImage *img = [UIImage imageNamed: @"title_bar_320x44@2x.png"]; | |
[img drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)]; | |
self.tintColor = RGBACOLOR(150, 0, 0, 0.1); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment