问题标签 [messageui]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
swift - 为什么第三次单击按钮时发送消息会崩溃?
我在我的项目中设置了向电话号码发送消息并且工作正常。我点击button
,弹出iPhone发送消息页面,如果我发送消息或点击Cancel
,它会返回。现在,如果我第二次单击该按钮,则没有任何反应,如果我第三次单击,则应用程序崩溃。控制台中的信息告诉我将 Use afterScreenUpdates:NO 更改为Use afterScreenUpdates:YES
. 所以我controller.view.drawHierarchy(in: view.bounds, afterScreenUpdates: true)
在我的代码中添加了,但它没有用。这里需要改变什么?
在控制台中:
我的代码:
ios - 从 swift 3 发送电子邮件
我正在尝试设置一个带有发送电子邮件选项的应用程序。
我有这个代码:
所以我收到这条消息:“邮件服务不可用”。现在我已经在 iCloud 中登录了模拟器设备......所以我认为它应该这样做,但事实并非如此。为什么这不起作用?你能告诉我出了什么问题,我该如何继续前进?
ios - MFMailComposeViewController 在 iOS 10.2 上的 presentViewController 上崩溃
好吧,这是一个非常小的问题,我已经花了几个小时研究并试图找出应用程序崩溃的原因。
假设我有两个视图控制器 VC1、VC2,我MFMailComposeViewController
从 VC2 调用。
到目前为止,我已经尝试从 VC1 过渡到 VC2 ..
- 通过
performSegueIdentifier
- 通过
Storyboard ID
- 通过
Storyboard ID
与UINavigationController(rootViewController: vc2)
但没有任何效果。我什至尝试嵌入UINavigationViewController
到 VC2 但也没有运气。
下面是IBAction
VC2中的方法
所有网点和活动参考也很好。
崩溃日志
已解决:
问题在于自定义导航栏。我UINavigationBar
在呈现MFMailComposeViewController
并将其重新设置为关闭时重置了外观。
这个帖子帮我解决了。
我在全局文件中创建了以下两种方法。
ios - MFMailComposeViewController iOS 上缺少取消和发送按钮
我正在开发一个 iOS 应用程序,用户可以在其中发送电子邮件和发送短信。我正在使用 MFMailComposeViewController 和 MFMessageComposeViewController 发送电子邮件和短信,但有时取消和发送按钮会出现在作曲家上,有时它根本不会出现。这个问题是随机的,我已经尝试了很多。任何帮助将不胜感激。 代码
我在头文件中的 viewController 中实现了 MFMailComposeViewControllerDelegate。
swift - UIButton 没有调出 MFMailViewController
我有一些代码错误。我对此很陌生,我正在努力自学。我在网上找到了大部分答案,但似乎找不到关于这个特定问题的任何信息。我想在应用程序中发送一封电子邮件,但只要我按下电子邮件按钮,MFMailViewController 就不会出现。就像我的 UIButton 不工作一样。但我知道我将它作为 IBAction。到目前为止,这是我的代码。任何帮助深表感谢。
ios - MFMailComposeViewController 视图不会第二次关闭
我有我认为是一个独特的问题。我无法关闭我的电子邮件窗口。我正在使用 Xcode 8。
电子邮件在我第一次打开时会正确关闭,但如果我再次打开它就不会。如果我按“取消”,它不会给我“删除草稿”的选项。如果我按“发送”,则会发送电子邮件,但窗口不会关闭。
我的代码如下。第mailComposeController
一次被正确调用,但它永远不会被第二次调用。有人对我所缺少的有任何想法吗?
ios - Objective C: Exported Sqlite to Email has incomplete Data
I am trying to export the sqlite that I've created for core data to store the records locally to the app that I am developing.
I have managed to export the sqlite file via e-mail as attachment, but when I extracted the sqlite file the data is not complete, newly added records aren't shown.
Here's my code for export through e-mail,
ios - 显示 MFMailComposeViewController 时导航堆栈中缺少视图控制器
我有一个由视图控制器 A、B、C 组成的导航堆栈。
在视图控制器 C 中,我提出了一个MFMailComposeViewController
类似的内容:
在我的解雇代表中
当邮件撰写 VC 被解除时,我希望应用程序弹回控制器 C,但随后应用程序总是弹回 B。我在解除委托中放置了一个打印语句,发现 C 不再在我的导航堆栈中。 .
这是怎么回事?如何使邮件撰写 vc 弹出回 C?