TUIGroupConversationListController Class Reference

Inherits from UIViewController
Declared in TUIGroupConversationListController.h
TUIGroupConversationListController.m

Overview

【模块名称】群组列表界面(TUIGroupConversationListController) 【功能说明】负责拉取用户的所在的群组信息,并在界面中显示。 用户可以通过群列表界面查看自己所在的所有群,群组展示顺序按首字母开头从 A 到 Z 展示,特殊符号的群名在最后显示。

Other Methods

  tableView

群列表的 TableView 本界面通过 tableView 展示用户所在的所有群组。同时 tableView 能够实现对用户交互操作的响应。

@property (nonatomic, strong) UITableView *tableView

Declared In

TUIGroupConversationListController.h

  viewModel

群列表界面的视图模型。 视图模型负责通过 IM SDK 提供的接口拉取群列表数据并进行加载,方便页面对群列表进行展示。

@property (nonatomic, strong) TUIGroupConversationListViewModel *viewModel

Declared In

TUIGroupConversationListController.h

Other Methods

– viewDidLoad

- (void)viewDidLoad

– dealloc

- (void)dealloc

– viewWillAppear:

- (void)viewWillAppear:(BOOL)animated

– updateConversations

- (void)updateConversations

– onRefreshConversations:

- (void)onRefreshConversations:(NSNotification *)notification

– numberOfSectionsInTableView:

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView

– tableView:numberOfRowsInSection:

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section

– tableView:heightForRowAtIndexPath:

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath

– tableView:canEditRowAtIndexPath:

- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath

– tableView:editingStyleForRowAtIndexPath:

- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath

– tableView:titleForDeleteConfirmationButtonForRowAtIndexPath:

- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath

– tableView:shouldIndentWhileEditingRowAtIndexPath:

- (BOOL)tableView:(UITableView *)tableView shouldIndentWhileEditingRowAtIndexPath:(NSIndexPath *)indexPath

– tableView:commitEditingStyle:forRowAtIndexPath:

- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath

– tableView:viewForHeaderInSection:

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section

– tableView:heightForHeaderInSection:

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section

– didSelectConversation:

- (void)didSelectConversation:(TCommonContactCell *)cell

– tableView:cellForRowAtIndexPath:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

– adaptivePresentationStyleForPresentationController:

- (UIModalPresentationStyle)adaptivePresentationStyleForPresentationController:(UIPresentationController *)controller