iphone - How to customize MFMailComposeViewController so that i can make the "to" field as non-editable? -


i using mfmailcomposeviewcontroller sending feedback in app. works fine. problem here is, user can edit/delete "to" address. want make non-editable one. may be, user can add mail addresses in "to" field.

but he/she should not delete feedback address (here, "support@xxxx.com").

here code...

mfmailcomposeviewcontroller *composewindow = [[mfmailcomposeviewcontroller alloc] init]; composewindow.mailcomposedelegate = self;  nsstring *str = @"subject of feedback"; [composewindow setsubject:[str stringbyappendingstring:[[uidevice currentdevice]systemversion]]];  nsarray *torecipients = [nsarray arraywithobject: @"support@xxxx.com"];  [composewindow settorecipients:torecipients];  [self presentmodalviewcontroller:composewindow animated:yes]; [composewindow release]; 

thanks in advance

rajkanth

you can not customize mfmailcomposeviewcontroller avoid editing. apple forbids this, , reason quite simple: user , not must decide send, whom etc. same applies ui controller allowing send sms (text) messages. and, of course, apple not allows sending email or sms without explicit interaction user. user must validate , send email or sms message. validation process include ability cancel message or change single property @ will, including "to" recipients.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -