In iOs4
i created a custom navigation bar using this snippet
#import "UINavigationBar+CustomImage.h"
@implementation UINavigationBar (CustomImage)
- (void)drawRect:(CGRect)rect {
// Drawing code
UIImage *image = [[UIImage imageNamed:@"header.png"] retain];
[image drawInRect:CGRectMake(0, 0,self.frame.size.width , self.frame.size.height)];
[image release];
}
@end
and it is well for ios4 in my app. Now I want to run this in iOs5
and the problem is that the custom navigation bar doesn't appear the way I want.
Can any one help me to create a custom navigation bar for iOs5
.