MFMailComposeViewController自定义UINavigationBar

问题描述:

我有一个UINavigationBar与图像的色调来定制其外观。但是,当我将邮件编辑器作为模态视图显示时,将显示默认的UINavigationBar。任何建议如何我可以改变,以便我的自定义栏显示?MFMailComposeViewController自定义UINavigationBar

您可以直接访问导航栏,如下所示:

MFMailComposeViewController *viewController = [[MFMailComposeViewController alloc] init]; 
viewController.navigationBar.tintColor = [UIColor blueColor]; ///< Or whatever colour you want to tint it/set the background image to, etc.