IPhone SDK 3.0 in-app email – changing navigation bar tint color

cocoa-touchiphoneiphone-sdk-3.0

My App uses the iPhone SDK 3.0's new in-app email feature.

I want to change the tint color of the email UI to black and make it translucent.

I tried the following code,

/*
picker.navigationController.navigationBar.tintColor = [UIColor blackColor];
picker.navigationController.navigationBar.translucent = YES ;
*/

But it's changing the color of the view that creates,

MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];

the compose window, rather than the compose window itself.

Is this atleast possible? Or should we stick to Apple provided blue itself???

Best Answer

Since the MFMailComposeViewController is a subclass of UINavigationController, simply do this:

[[picker navigationBar] setTintColor:[UIColor redColor]];