uttam uttam - 2 months ago 14
Objective-C Question

how can i change the navigation bar of MFMailComposeViewController?

i want to change the navigation bar of MFMailComposeViewController to black color.

how can i change.

Answer

Note that MFMailComposeViewController inherits from UINavigationController so it also has navigationBar property.

MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
picker.navigationBar.barStyle = UIBarStyleBlack;