当 MFMailComposeViewController 不起作用时?
在哪些情况下 MFMailComposeViewController 无法在 iOS 4 上工作?
例如,当用户尚未在苹果的邮件应用程序中设置帐户时,它是否有效?是否还有其他情况导致它无法工作,因为用户抱怨它无法工作,而他使用的是 iOS 4。
谢谢。
In which situations a MFMailComposeViewController wouldn't work on iOS 4?
For example, does it work when the user hasn't set up an account in Apple's Mail app? And is there any other situation where it won't work, because a user complained it didn't work and he had iOS 4.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果未设置帐户,
MFMailComposeViewController
将无法工作。您可以调用[MFMailComposeViewController canSendMail]
来检查用户是否至少配置并启用了一个邮件帐户。据我所知,它不会检查用户的设备是否设置正确(即不检查用户名和密码等是否正确)。简而言之:如果邮件应用程序正常工作,您的 MFMailComposeViewController 也将正常工作。如果不起作用,您将需要提供比“不起作用”更详细的问题描述。If no account is set up, the
MFMailComposeViewController
cannot work. You can call[MFMailComposeViewController canSendMail]
to check if the user has at least one mail account configured and enabled. As far as I know, it does not check if the user's device is set up properly (i.e. no check for correct username and password etc.). In short: If the Mail app works, yourMFMailComposeViewController
is going to work as well. If it does not, you will need to give a more detailed description of the problem than "does not work".