Is it possible to Prevent TO fileld to be edit in MFMailComposeViewController
Posted
by mihirpmehta
on Stack Overflow
See other posts from Stack Overflow
or by mihirpmehta
Published on 2010-04-29T07:45:02Z
Indexed on
2010/04/29
7:47 UTC
Read the original article
Hit count: 203
in my Application i am using MFMailComposeViewController for emails... I am Adding to Field in it programmaticly... I want To prevent user to edit the TO field,
User can't change TO field's email address... I am not able to find neither i know if it is possible or not
It is not necessary but still code is
NSArray *arr = [NSArray arrayWithObject:Emailstr];
MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
[controller setToRecipients:arr];
[controller
[controller setMessageBody:@"Hello there." isHTML:NO];
[self presentModalViewController:controller animated:YES];
© Stack Overflow or respective owner