
我收到这个错误
vIEwServiceDIDTerminateWithError: Error Domain=_UIVIEwServiceInterfaceErrorDomain Code=3 "The operation Couldn’t be completed. (_UIVIEwServiceInterfaceErrorDomain error 3.)" UserInfo=... {Message=Service Connection Interrupted}@H_419_5@ 用这段代码
- (IBAction) mailbutton:(ID)sender { if([MFMailComposeVIEwController canSendMail]) { [MSAPP.globalMailComposer setModalTransitionStyle:UIModalTransitionStyleCoverVertical]; [self presentVIEwController:MSAPP.globalMailComposer animated:YES completion:nil]; } else { UIAlertVIEw *alert = [[UIAlertVIEw alloc] initWithTitle:@"Error" message:@"Unable to mail. No email on this device?" delegate:self cancelbuttonTitle:@"OK" otherbuttonTitles:nil]; [alert show]; [MSAPP cycleTheGlobalMailComposer]; }}@H_419_5@解决方法 这是iOS 8模拟器的已知问题.请参阅 this post可能的解决方法. You MUST allocate and initiate MFMailComposeVIEwController in an
earlIEr stage,and hold it in one static variable,whenever it’s
needed,get the static MFMailComposeVIEwController instance and
present it.
AND you will almost certainly have to “cycle” the global
MFMailComposeVIEwController after each use. It is not reliable to
“re-use” the same one. Have a global routine which release and then
re-initializes the singleton MFMailComposeVIEwController. Call it each
time after you are finished with it
信用到“Joe Blow”的职位.根据您的代码,您已经宣布了全球邮件作曲家.尝试“回收”它的帖子建议看看是否解决了你的问题.我有同样的问题,不幸的是,这个解决方案并不能解决我的问题.我可以确认此解决方案适用于iOS 7.1模拟器,但不支持iOS 8,尽管已经建议它可以在物理iOS 8设备上工作.
总结 以上是内存溢出为你收集整理的ios – _UIViewServiceInterfaceErrorDomain全部内容,希望文章能够帮你解决ios – _UIViewServiceInterfaceErrorDomain所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)