Navigation and Toolbar customized background image is not working in IOS 5
<p>I have implemented customized navigation and toolbar in our project using xcode 4(ios 4.3) and its working fine there but now i have updated my xcode 4.2(ios 5), here its not working. things to be strange please help on this one</p>

<p>Here is my app delegate code</p>

<pre><code>@implementation UINavigationBar (CustomImage)
- (void)drawRect:(CGRect)rect {
    UIImage *image = [UIImage imageNamed: @"TopBg_with_logo.png"];
    [image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
}
@end

@implementation UIToolbar (CustomImage)
- (void)drawRect:(CGRect)rect {
    UIImage *image = [UIImage imageNamed: @"btmbar_Bg.png"];
    [image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
}
@end
</code></pre>
