我想用电子邮件注册login
,为此我必须检查用户是否单击了"发送"或"取消。有没有可能检查一下?因为如果用户不发送,我不希望他出现在我的应用程序中。关于
如果使用默认MFMailComposeViewController
,请尝试在中检查"(MFMailComposeResult)result
"
// Then implement the delegate method
- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error {
[self dismissModalViewControllerAnimated:YES];
}
enum MFMailComposeResult {
MFMailComposeResultCancelled,
MFMailComposeResultSaved,
MFMailComposeResultSent,
MFMailComposeResultFailed
};
typedef enum MFMailComposeResult MFMailComposeResult;