Changing color of the titlebar, background and text of MFMailComposeViewController
Posted
by iSharreth
on Stack Overflow
See other posts from Stack Overflow
or by iSharreth
Published on 2010-04-03T06:27:32Z
Indexed on
2010/04/03
6:33 UTC
Read the original article
Hit count: 515
I am sending email from my iPhone application. Everything working fine, but I want to change the color of the title bar that appears from blue to black and the background color from white to black. Also, all the text to white color.
What should I do? Anyone please help!
I used the below code:
(IBAction)sendMail{ MFMailComposeViewController *mailComposer = [[MFMailComposeViewController alloc]init];
mailComposer.mailComposeDelegate = self;
if([MFMailComposeViewController canSendMail]){
[mailComposer setToRecipients: [NSArray arrayWithObjects:@"[email protected]",nil]]; [mailComposer setSubject: nil]; [mailComposer setMessageBody: nil isHTML:NO]; [self presentModalViewController:mailComposer animated: YES];
}
© Stack Overflow or respective owner