极光IM JMSGConversation创建消息对象为空

xf_Lian
6年前 1.5k 0
JMSGMessage      *textMessage = nil;
JMSGTextContent *textContent   = [[JMSGTextContent alloc] initWithText:@"你好!"];
textMessage                                 = [self.conversation createMessageWithContent:textContent];

NSLog(@"text --- %@",((JMSGTextContent *)textMessage.content).text);

打印出的text为空,是什么原因?

1个回答

热门排序