zoukankan      html  css  js  c++  java
  • IM 融云 之 列表及封装

    //
    //  ChatListIMViewController.m
    //  testRongCloudIM
    //
    //  Created by WoodGao on 16/1/8.
    //  Copyright © 2016年 wood. All rights reserved.
    //
    
    #import "ChatListIMViewController.h"
    
    @interface ChatListIMViewController ()
    
    @end
    
    @implementation ChatListIMViewController
    
    - (void)viewDidLoad {
        //重写显示相关的接口,必须先调用super,否则会屏蔽SDK默认的处理
        [super viewDidLoad];
        
        //设置需要显示哪些类型的会话
        [self setDisplayConversationTypes:@[@(ConversationType_PRIVATE),
                                            @(ConversationType_DISCUSSION),
                                            @(ConversationType_CHATROOM),
                                            @(ConversationType_GROUP),
                                            @(ConversationType_APPSERVICE),
                                            @(ConversationType_SYSTEM)]];
        //设置需要将哪些类型的会话在会话列表中聚合显示
        [self setCollectionConversationType:@[@(ConversationType_DISCUSSION),
                                              @(ConversationType_GROUP)]];
    }
    
    - (void)didReceiveMemoryWarning {
        [super didReceiveMemoryWarning];
    }
    
    
    //重写RCConversationListViewController的onSelectedTableRow事件
    - (void)onSelectedTableRow:(RCConversationModelType)conversationModelType
             conversationModel:(RCConversationModel *)model
                   atIndexPath:(NSIndexPath *)indexPath {
        RCConversationViewController *conversationVC = [[RCConversationViewController alloc]init];
        conversationVC.conversationType = model.conversationType;
        conversationVC.targetId = model.targetId;
        conversationVC.title = @"想显示的会话标题";
        [self.navigationController pushViewController:conversationVC animated:YES];
    }
    
    @end
    
  • 相关阅读:
    缓存在高并发场景下的常见问题
    如何提高缓存命中率
    修改或隐藏nginx的版本号
    centos7使用docker安装zabbix
    Handsontable 新增一行 默认值
    java保留有效数字
    Handsontable通用方法
    handsontable插件事件
    handsontable常规配置的中文API
    handsontable的核心方法
  • 原文地址:https://www.cnblogs.com/SimonGao/p/5114121.html
Copyright © 2011-2022 走看看