gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 20:30:06 24 4
gpt4 key购买 nike

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

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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com