UINavigationBar Background Image Problem
Posted
by tobi
on Stack Overflow
See other posts from Stack Overflow
or by tobi
Published on 2010-05-10T17:22:02Z
Indexed on
2010/05/10
17:24 UTC
Read the original article
Hit count: 282
i have set my navigationbar background with this code in my App delegate:
@implementation UINavigationBar (UINavigationBarCategory)
- (void)drawRect:(CGRect)rect {
UIImage *backgroundImage = [UIImage imageNamed: @"Nav-rightpane.png"];
CGContextDrawImage(UIGraphicsGetCurrentContext(),
CGRectMake(0, 0, self.frame.size.width, self.frame.size.height),
backgroundImage.CGImage);
}
@end
This works perfect but now i must change the background to the default at UIPopoverController. Any idea for this?
Thanks
© Stack Overflow or respective owner