ios - 应用程序因邮件被拒绝

标签 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 类,它有什么问题吗?有什么建议吗。

最佳答案

你是这样做的吗:

- (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(正如我在上面的示例中所做的那样)来执行您想要的操作。

关于ios - 应用程序因邮件被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12506700/

相关文章:

javascript - Dart/Objective-C 和 Dart/Java 之间的交互

iphone - 增加框架时自动调整 mask 大小问题 - iOS

ios - 视频/电影播放时间

objective-c - Mac App Store 评论员说 "It appears Kiwi fails codesign verification"

ios - 在 iTunes Connect 中,取消 Pending Developer Release 中的版本并上传新版本时,应用程序版本可以相同吗?

javascript - Phonegap 3 上有 onExit 或 onDestroy 方法吗?

objective-c - 如何将 MIME 类型转换为 iOS 上的首选文件扩展名?

iphone - 以编程方式对 UILabel touchUpInside 执行操作?

iphone - Apple 使用哪些 IP 地址来测试 iPhone 应用程序?

如果手机未通过 XCode 连接,开发下的 iPhone 应用程序会崩溃