29,027
社区成员
发帖
与我相关
我的任务
分享
-(UICollectionViewCell*)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
PCWChatCollectionViewCell *cell=[collectionView dequeueReusableCellWithReuseIdentifier:K_Chat_CollectionCell forIndexPath:indexPath];
cell.backgroundColor = [UIColor whiteColor];
cell.iconImageView.image = [UIImage imageNamed:@"icon_collectionviewcell_chat"];
cell.titleLable.text = @"二手车聊天室";
cell.detailLable.text = @"汇聚全国二手车商交流群";
cell.enterButton.tag = 1;
[cell setUnreadCount:[[RCIMClient sharedRCIMClient] getTotalUnreadCount]]
return cell;
}
#pragma mark - 融云sdk接受消息回调
-(void)onReceived:(RCMessage *)message left:(int)nLeft object:(id)object
{
[_collectionView reloadData];
}
dispatch_async(dispatch_get_main_queue(), ^{
[ws appendAndDisplayMessage:message];
});