MFMailComposerViewController通过UIActivityViewController错误 [英] MFMailComposerViewController via UIActivityViewController error

查看:602
本文介绍了MFMailComposerViewController通过UIActivityViewController错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过iOS8上的UIActivityViewController打开邮件编辑器。 (所以,这个程序没有我自己的代码)设备上的结果是继续错误记录(即使在我关闭邮件并退出到不同的UI控制器之后,仍会记录消息)

I'm trying to open a mail composer via UIActivityViewController on iOS8. (So, there's no my own code for this procedure) The result on device is continues error logging (the messages continue to be logged even after I close mail and quit to different UI controller)

AX交换错误:错误域=可访问性代码= 0远程服务不响应_accessibilityMachPortUserInfo = 0x14fd1b60 {NSLocalizedDescription =远程服务不响应_accessibilityMachPort}

在模拟器上,MFMailComposeViewController在我出错后立即解除错误:

On a simulator the MFMailComposeViewController just dismisses right after I present it with error:

viewServiceDidTerminateWithError:Error Domain = _UIViewServiceInterfaceErrorDomain Code = 3操作无法完成。(_UIViewServiceInterfaceErrorDomain error 3.)UserInfo = 0x7b6eb4b0 {Message = Service Connection Interrupted}

PS我有xcode 6并在iOS 8.0.2 iPhone 5s上测试。难道我做错了什么?在此先感谢您的回复!

P.S. I have xcode 6 and testing on iOS 8.0.2 iPhone 5s. Am I doing something wrong? Thanks in advance for your replies!

推荐答案

我在产品中遇到同样的问题,经过一些调试后,我缩小了范围它是呈现的ViewController和自定义键盘的组合。这意味着只有当我导航到任何呈现的ViewController(如邮件编辑器)并且自定义键盘被激活时,我的应用程序才会显示此错误消息。

I came across same problem in my product and after doing some debugging, I narrowed down that it's the combination of presented ViewController and custom keyboard. That means my application was showing this error message only when I navigated to any presented ViewController (like mail composer) and a custom keyboard was activated.

在进一步命中 - 和 - 尝试,我能够通过删除用于自动测试的MonkeyTalk库来消除此错误消息。

During further hit-and-try, I was able to get rid of this error message by removing MonkeyTalk library, which was being used for automated testing.

我不是确定相同的情况是否适用于您,但我确信某些库与某些键盘冲突并导致错误消息。

I am not sure if same scenario applies to you, but I am sure that some library is conflicting with some keyboard and that's resulting in error message.

PS在我的情况下,我的应用程序被这些错误消息冻结。

P.S. in my case my application was being freezed by those error messages.

这篇关于MFMailComposerViewController通过UIActivityViewController错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆