I used custom navigation bar within my application,
// appdelegate.h
@implementation UINavigationBar(customNavBar)
- (void)drawRect:(CGRect)rect{
UIImage *navBarImage = [UIImage imageNamed:@"navBar.png"];
[navBarImage drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
}
@end
It works fine, but when开发者_运维百科 I use a MFMailComposeViewController for sending an email, it appears with custom navigation bar. Here I don't want the customized navigation bar, I want it to be default.
How do I achieve this?
Here is the example of custom navigation bar for each navigation.
in your case you have to modify that code to your needs.
Change Navigation bar Background image on each navigation
精彩评论