RCMessageCell Class Reference
Inherits from | RCMessageBaseCell : UICollectionViewCell |
---|---|
Declared in | RCMessageCell.h |
Overview
展示的消息Cell类
需要展示用户信息和内容的消息Cell可以继承此类, 如:RCTextMessageCell、RCImageMessageCell、RCLocationMessageCell、RCVoiceMessageCell、RCRichContentMessageCell等。 如果您需要显示自定义消息,可以继承此类。
portraitImageView
消息发送者的用户头像
@property (nonatomic, strong) RCloudImageView *portraitImageView
Discussion
消息发送者的用户头像
Declared In
RCMessageCell.h
nicknameLabel
消息发送者的用户名称
@property (nonatomic, strong) UILabel *nicknameLabel
Discussion
消息发送者的用户名称
Declared In
RCMessageCell.h
messageContentView
消息内容的View
@property (nonatomic, strong) RCContentView *messageContentView
Discussion
消息内容的View
Declared In
RCMessageCell.h
bubbleBackgroundView
消息的背景View
@property (nonatomic, strong) UIImageView *bubbleBackgroundView
Discussion
消息的背景View
Declared In
RCMessageCell.h
statusContentView
显示发送状态的View
@property (nonatomic, strong) UIView *statusContentView
Discussion
显示发送状态的View
其中包含messageFailedStatusView子View。
Declared In
RCMessageCell.h
messageFailedStatusView
显示发送失败状态的View
@property (nonatomic, strong) UIButton *messageFailedStatusView
Discussion
显示发送失败状态的View
Declared In
RCMessageCell.h
messageActivityIndicatorView
消息发送指示View
@property (nonatomic, strong) UIActivityIndicatorView *messageActivityIndicatorView
Discussion
消息发送指示View
Declared In
RCMessageCell.h
portraitStyle
显示的用户头像形状
@property (nonatomic, assign, setter=setPortraitStyle:) RCUserAvatarStyle portraitStyle
Discussion
显示的用户头像形状
Declared In
RCMessageCell.h
receiptView
显示是否消息回执的Button
@property (nonatomic, strong) UIButton *receiptView
Discussion
显示是否消息回执的Button
仅在群组和讨论组中显示
Declared In
RCMessageCell.h
receiptStatusLabel
消息阅读状态的 Label
@property (nonatomic, strong) UILabel *receiptStatusLabel
Discussion
消息阅读状态的 Label
Declared In
RCMessageCell.h
– setDataModel:
设置当前消息Cell的数据模型
- (void)setDataModel:(RCMessageModel *)model
Parameters
model |
消息Cell的数据模型 |
---|
Discussion
设置当前消息Cell的数据模型
Declared In
RCMessageCell.h
– updateStatusContentView:
更新消息发送状态
- (void)updateStatusContentView:(RCMessageModel *)model
Parameters
model |
消息Cell的数据模型 |
---|
Discussion
更新消息发送状态
Declared In
RCMessageCell.h
– showBubbleBackgroundView:
是否显示消息的背景气泡 View
- (void)showBubbleBackgroundView:(BOOL)show
Parameters
show |
消息Cell的数据模型 |
---|
Discussion
是否显示消息的背景气泡 View
Declared In
RCMessageCell.h
– messageDestructing
阅后即焚的回调
- (void)messageDestructing
Discussion
阅后即焚的回调
阅后即焚的消息,每过 1 秒都会触发该回调更新时间
Declared In
RCMessageCell.h
– setDestructViewLayout
阅后即焚的 UI 设置
- (void)setDestructViewLayout
Discussion
阅后即焚的 UI 设置
Declared In
RCMessageCell.h
– didTapMessageContentView
点击消息视图 messageContentView 回调
- (void)didTapMessageContentView
Discussion
点击消息视图 messageContentView 回调
Declared In
RCMessageCell.h