I am subclassing the UIToolBar, this is how I override the drawRect UIToolBar method:
- (void)drawRect:(CGRect)rect { UIImage *backgroundImage = [UIImage imageNamed:@"UIToolBar_Background.png"]; [backgroundImage drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)]; }
The application uses the UINavigationController paradigm initialized using the initWithNavigationBarClass .
Is the bottom half of the toolbar black? UIToolBar_Background.png has a height of 44 pixels (or 88 for the retina). It should not have a bottom half black.
ios uinavigationcontroller uitoolbar
drc Apr 25 '13 at 13:24 2013-04-25 13:24
source share