I have a NavigationController with customized UINavigationBar:
@implementation UINavigationBar (CustomImage)
- (void)drawRect:(CGRect)rect
{
UIImage *image = [UIImage imageNamed: @"banner.png"];
[image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
}
@end
I'm allowing rotation using shouldAutorotateToInterfaceOrientation.
When i'm rotating, i would like to change the banner.png
with banner_port.png
How can i do it?