TUIMessageCell Class Reference
Inherits from | TCommonTableViewCell : UITableViewCell |
---|---|
Declared in | TUIMessageCell.h TUIMessageCell.m |
Overview
【模块名称】TUIMessageCell 【功能说明】用于实现聊天窗口中的消息单元。 消息单元类存储了消息相关的各类信息,比如:发送者头像、发送者昵称、消息内容(支持文本、图片、视频等各种格式)等。 消息单元能够相应用户的多种交互动作。 同时,消息单元作为多种细化消息的父类,提供了各类消息单元属性与行为的基本模板。
Other Methods
container
容器视图。 包裹了 MesageCell 的各类视图,作为 MessageCell 的“底”,方便进行视图管理与布局。
@property (nonatomic, strong) UIView *container
Declared In
TUIMessageCell.h
indicator
活动指示器。 在消息发送中提供转圈图标,表明消息正在发送。
@property (nonatomic, strong) UIActivityIndicatorView *indicator
Declared In
TUIMessageCell.h
retryView
重发视图。 在发送失败后显示,点击该视图可以触发 onRetryMessage: 回调。
@property (nonatomic, strong) UIImageView *retryView
Declared In
TUIMessageCell.h
messageData
信息数据类。 存储了该massageCell中所需的信息。包括发送者 ID,发送者头像、信息发送状态、信息气泡图标等。 messageData 详细信息请参考:Section\Chat\CellData\TUIMessageCellData.h
@property (readonly) TUIMessageCellData *messageData
Declared In
TUIMessageCell.h
delegate
协议委托 负责实现 TMessageCellDelegate 协议中的功能。
@property (nonatomic, weak) id<TMessageCellDelegate> delegate
Declared In
TUIMessageCell.h
– fillWithData:
单元填充函数 根据data填充消息单元
- (void)fillWithData:(TCommonCellData *)data
Parameters
data |
填充数据源 |
---|
Declared In
TUIMessageCell.h
Other Methods
– initWithStyle:reuseIdentifier:
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier