2017-06-16 94 views
0

发送消息时,它会用随机码引发错误。没有描述或任何东西。这是我的代码:Swift 4 iMessage发送消息:操作无法完成。 (com.apple.messages.messagesapp-错误错误9.)

 if #available(iOSApplicationExtension 11.0, *) { 
      conversation?.send(message, completionHandler: { (error) in 
       if error != nil { 
        print(error?.localizedDescription) 
       } 
      }) 
     } else { 
      conversation?.insert(message, completionHandler: { (error) in 
       if error != nil { 
        print(error?.localizedDescription) 
       } 
      }) 
     } 

错误:操作无法完成。 (com.apple.messages.messagesapp-error error 9.)

当我使用插入功能时,它工作正常。真的在烦我哈哈,明白吗?臭虫......不?好。

回答

相关问题