应用程序因邮件而被拒绝

时间:2012-09-20 05:46:36

标签: ios iphone appstore-approval mfmailcomposer

我的应用被拒绝了,原因如下: -

Did not integrate with iOS features. For example, the email button should enable users to compose emails in the app rather than launching the Mail app.

我没有得到他们想要的东西。我使用过MFMailComposer类所以它有什么问题?任何建议。

2 个答案:

答案 0 :(得分:2)

你这样做了吗?

- (IBAction)pushMail:(id)sender { //A button that initiates composition
    MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init];
    controller.mailComposeDelegate = self;
    [controller setSubject:@"My Mail Subject"];
    if (controller) [self presentModalViewController:controller animated:YES];
    [controller release];
}
- (void)mailComposeController:(MFMailComposeViewController*)controller  
          didFinishWithResult:(MFMailComposeResult)result 
                        error:(NSError*)error;
{
    if (result == MFMailComposeResultSent) {
        NSLog(@"It's away!");
    }
    [self dismissModalViewControllerAnimated:YES];
}

我认为你必须使用MSMailComposeViewController(如上例所示)来做你想做的事。

答案 1 :(得分:1)

  

...电子邮件按钮应该允许用户在应用中撰写电子邮件...

他们的意思是您的程序应该允许人们撰写电子邮件,而不是打开Mail.app。