
vIEwServiceDIDTerminateWithError: Error Domain=_UIVIEwServiceInterfaceErrorDomain Code=3 “(null)” UserInfo={Message=Service Connection Interrupted}
到底是怎么回事?
非常重要的说明
它在iOS8下运行良好.
解决方法 我不能帮助你,因为你没有发布任何代码,但这是iOS9上的MailComposeController的工作副本,在我的应用程序中使用它没有任何问题.重要的是,您的类符合MFMailComposeVIEwControllerDelegate.请注意,sendMail方法与项目中的按钮相关@IBAction func sendMail(sender: AnyObject) { let mailComposeVIEwController = configuredMailComposeVIEwController() if MFMailComposeVIEwController.canSendMail() { self.presentVIEwController(mailComposeVIEwController,animated: true,completion: nil) } else { self.showSendMailErrorAlert() }}func configuredMailComposeVIEwController() -> MFMailComposeVIEwController { let mailComposerVC = MFMailComposeVIEwController() mailComposerVC.mailComposeDelegate = self mailComposerVC.setToRecipIEnts(["yourMail@goesHere"]) return mailComposerVC}func showSendMailErrorAlert() { print("There was an error.") //In case of error with email account on device,you should implement an alert here}func mailComposeController(controller: MFMailComposeVIEwController,dIDFinishWithResult result: MFMailComposeResult,error: NSError?) { controller.dismissVIEwControllerAnimated(true,completion: nil)} 总结 以上是内存溢出为你收集整理的swift – MFMailComposeViewController在iOS9下立即消失全部内容,希望文章能够帮你解决swift – MFMailComposeViewController在iOS9下立即消失所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)