0

我想login通过电子邮件注册,为此我必须检查用户是否点击了“发送”或“取消”。有没有可能检查这个?因为如果用户不发送它,我不希望他进入我的应用程序。问候

4

1 回答 1

2

如果您使用默认值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;
于 2013-07-02T08:35:37.543 回答