- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 MFMessageComposeViewController 在我的应用程序中发送短信。在我尝试获得操作结果之前,一切都是正确的。实际上消息发送失败,因为它可以在短信 native 应用程序中看到(我的SIM卡中没有服务),但我在 - (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result 中收到 MessageComposeResultSent。
你经历过这个吗?我们能否真正断言短信已正确发送?
非常感谢。
最佳答案
以下是 MFMessageComposeViewController.h 中 MessageComposeResult 结构讨论的片段:
Typically MessageComposeResultSent will be sent, but MessageComposeResultFailed will be sent in the case of failure. Send may only be interpreted as a successful queueing of the message for later sending. The actual send will occur when the device is able to send.
关于iphone - 即使消息发送失败,也会发送 MessageComposeResult,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3547064/
我正在使用 MFMessageComposeViewController 在我的应用程序中发送短信。在我尝试获得操作结果之前,一切都是正确的。实际上消息发送失败,因为它可以在短信 native 应用程
我是一名初学者 Swift 开发人员,正在将我的应用程序迁移到 swift 3,但我无法修复此错误消息。实例成员“rawValue”不能用于类型“MessageComposeResult”你知道我的代
这个问题在这里已经有了答案: xcode 6 beta 4 - MessageComposeResult is not convertible to OptionalNilComparisonTyp
我刚刚从 Xcode 6 Beta 3 升级到 Beta 4。在 3 中,我的应用程序编译完美,但在 4 中出现以下错误。请任何人解释并提供解决方案。 func messageComposeViewC
我是一名优秀的程序员,十分优秀!