/ Published in: Objective C

@drag the UINavigationBar to you Xib
@and paste the code to your App Delegate.h
@and paste the code to your App Delegate.h
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
@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
Comments
