TUIContactController Class Reference

Inherits from UIViewController
Declared in TUIContactController.h
TUIContactController.m

Overview

【模块名称】消息列表界面(TUIContactController) 【功能说明】显示消息列表总界面,为用户提供消息管理的操作入口。 消息列表包含了: 1、好友请求管理(TUINewFriendViewController) 2、群聊菜单(TUIGroupConversationListController) 3、黑名单(TUIBlackListController) 4、好友列表

Other Methods

– viewDidLoad

- (void)viewDidLoad

– viewModel

消息列表界面的视图模型 视图模型负责通过 IM SDK 的接口,拉取好友列表、好友请求等信息并将其加载,以便客户端的进一步处理。 详细信息请参考 Section\Contact\ViewModel\TContactViewModel.h

- (TContactViewModel *)viewModel

Declared In

TUIContactController.h

– reloadData

- (void)reloadData

– numberOfSectionsInTableView:

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView

– tableView:numberOfRowsInSection:

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

– tableView:viewForHeaderInSection:

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

– tableView:heightForRowAtIndexPath:

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

– tableView:heightForHeaderInSection:

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

– sectionIndexTitlesForTableView:

- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView

– tableView:cellForRowAtIndexPath:

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

– onSelectFriend:

- (void)onSelectFriend:(TCommonContactCell *)cell

– onAddNewFriend:

- (void)onAddNewFriend:(TCommonTableViewCell *)cell

– onGroupConversation:

- (void)onGroupConversation:(TCommonTableViewCell *)cell

– onBlackList:

- (void)onBlackList:(TCommonContactCell *)cell

– conversationListController:didSelectConversation:

- (void)conversationListController:(TUIConversationListController *)conversationController didSelectConversation:(TUIConversationCell *)conversation

Extension Methods

  tableView

@property UITableView *tableView

  firstGroupData

@property NSArray<TUIContactActionCellData*> *firstGroupData