使用SQL实现存储功能的聊天界面,在用户下次进入app时仍然可以保留以前的聊天记录
YsRoom *room = [[YsRoom alloc]init];
room.roomname = @"2333聊天室";
room.roomID = @"9527";
room.idf = 233;
_chatVc.user = room;
添加用户
###存储功能
YsModel *message1 = [YsModel new];
message1.messageType = YSMessageTypeText;
message1.ownerTyper = YSMessageOwnerTypeSelf;
message1.text = textMessage;
添加进SPQL
[self.database addTalk:2 with:textMessage];