TUIMessageCellLayout Class Reference

Inherits from NSObject
Declared in TUIMessageCellLayout.h
TUIMessageCellLayout.m

Overview

【模块名称】TUIMessageCellLayout 【功能说明】消息单元布局 用于实现个类消息单元(文本、语音、视频、图像、表情等)的 UI 布局。 布局可以使得 UI 风格统一,且易于管理与修改。 当您想对 TUIKit 中的界面布局作出调整时,您可以对此布局中的对应属性进行修改。

Other Methods

– init

- (instancetype)init

+ incommingMessageLayout

获取接收消息布局

+ (TUIMessageCellLayout *)incommingMessageLayout

Declared In

TUIMessageCellLayout.h

+ setIncommingMessageLayout:

设置接收消息布局

+ (void)setIncommingMessageLayout:(TUIMessageCellLayout *)incommingMessageLayout

Declared In

TUIMessageCellLayout.h

+ outgoingMessageLayout

获取发送消息布局

+ (TUIMessageCellLayout *)outgoingMessageLayout

Declared In

TUIMessageCellLayout.h

+ setOutgoingMessageLayout:

设置发送消息布局

+ (void)setOutgoingMessageLayout:(TUIMessageCellLayout *)outgoingMessageLayout

Declared In

TUIMessageCellLayout.h

+ systemMessageLayout

获取系统消息布局

+ (TUIMessageCellLayout *)systemMessageLayout

Declared In

TUIMessageCellLayout.h

+ setSystemMessageLayout:

设置系统消息布局

+ (void)setSystemMessageLayout:(TUIMessageCellLayout *)systemMessageLayout

Declared In

TUIMessageCellLayout.h

+ incommingTextMessageLayout

获取文本消息(接收)布局

+ (TUIMessageCellLayout *)incommingTextMessageLayout

Declared In

TUIMessageCellLayout.h

+ setIncommingTextMessageLayout:

设置文本消息(接收)布局

+ (void)setIncommingTextMessageLayout:(TUIMessageCellLayout *)incommingTextMessageLayout

Declared In

TUIMessageCellLayout.h

+ outgoingTextMessageLayout

获取文本消息(发送)布局

+ (TUIMessageCellLayout *)outgoingTextMessageLayout

Declared In

TUIMessageCellLayout.h

+ setOutgoingTextMessageLayout:

设置文本消息(发送)布局

+ (void)setOutgoingTextMessageLayout:(TUIMessageCellLayout *)outgoingTextMessageLayout

Declared In

TUIMessageCellLayout.h

Other Methods

  messageInsets

消息边距

@property UIEdgeInsets messageInsets

Declared In

TUIMessageCellLayout.h

  bubbleInsets

气泡内部内容边距

@property UIEdgeInsets bubbleInsets

Declared In

TUIMessageCellLayout.h

  avatarInsets

头像边距

@property UIEdgeInsets avatarInsets

Declared In

TUIMessageCellLayout.h

  avatarSize

头像大小

@property CGSize avatarSize

Declared In

TUIMessageCellLayout.h