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
    
  • 相关阅读:
    FastDFS
    MYSQL日常操作
    SVN安装
    mysql主主配置
    MySQL优化
    nginx反向代理tomacat+keepalived实现动静分离、负载均衡、高可用
    nginx故障及处理
    nginx配置检测及安全配置
    nginx基本优化
    大金空调适配器
  • 原文地址:https://www.cnblogs.com/SimonGao/p/5114121.html
Copyright © 2011-2022 走看看