我正在使用 MFMailComposeViewController 在我的应用程序中发送反馈。它工作正常。但这里的问题是,用户可以编辑/删除“收件人”地址。我想让它成为一个不可编辑的。可能是,用户可以在“收件人”字段中添加一些邮件地址。
但是他/她不应该删除反馈地址(这里是“support@xxxx.com”)。
这是我的代码...
MFMailComposeViewController *composeWindow = [[MFMailComposeViewController alloc] init];
composeWindow.mailComposeDelegate = self;
NSString *str = @"Subject of the 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];
提前致谢
拉杰坎特