1
可以爲MSMessage
實例設置唯一的id
和或tag
?我目前的應用程序基於從服務器使用整數ID作爲標識符獲取的數據。當選擇先前的消息時,我想通過獲取當前消息的id
或tag
(如果可能)並在查詢中將其用於我的服務器來相應地修改視圖。MSMessage的設置標籤或唯一標識符
override func willBecomeActive(with conversation: MSConversation) {
//Retrive id from selected message
if conversation.selectedMessage != nil{
//Do things
}
}