【发布时间】:2020-01-08 22:53:09
【问题描述】:
我已将我的应用程序的 URL 字符串添加到 MFMessageComposeViewController 的正文中,但是当我运行应用程序并发送消息时,该图像是来自应用商店的旧图像。如何让它使用应用商店中的当前图像。
fileprivate func textMessage() {
let appURL_Id = "https://apps.apple.com/us/app/simple-password-keeper/id1326895566"
let canSend = MFMessageComposeViewController.canSendText()
if canSend == true {
let messageVC = MFMessageComposeViewController()
messageVC.body = passwordString + "\n\n" + "Sent by Simple Password Keeper" + "\n\n" + appURL_Id
messageVC.messageComposeDelegate = self
self.present(messageVC, animated: true, completion: nil)
}else{
cantSendTextOrEmailAlert(alertTitle: multiUse.alertTitle, alertMessage: multiUse.messageSMS)
}
}
它必须如此。
【问题讨论】:
标签: swift sms messaging mfmessagecomposeview