TUIInputMoreCell Class Reference

Inherits from UICollectionViewCell
Declared in TUIInputMoreCell.h
TUIInputMoreCell.m

Overview

腾讯云 TUIKit 【模块名称】TUIInputMoreCell 【功能说明】更多单元,即在更多视图中显示的单元。 更多单元负责在更多视图中显示,向用户展示更多视图中包含的功能。同时作为各个功能的入口,相应用户的交互事件。

Other Methods

  image

更多单元对应的图标,从 TUIInputMoreCellData 的 iamge 中获取。 各个单元的图标有所不同,用于形象表示该单元所对应的功能。

@property (nonatomic, strong) UIImageView *image

Declared In

TUIInputMoreCell.h

  title

更多单元对应的标签。 其文本内容从 TUIInputMoreCellData 的 title 中获取。 各个单元的名称有所不同(比如拍摄、录像、文件、相册等),用于在图标下方以文字形式展示单元对应的功能。

@property (nonatomic, strong) UILabel *title

Declared In

TUIInputMoreCell.h

  data

更多单元对应的数据源 存放更多单元所需的信息与数据。

@property (nonatomic, strong) TUIInputMoreCellData *data

Declared In

TUIInputMoreCell.h

– fillWithData:

根据消息源填充“更多”单元。 包括 iamge、title 的赋值与 frame 的设定。

- (void)fillWithData:(TUIInputMoreCellData *)data

Parameters

data

负责存放数据的数据源。

Declared In

TUIInputMoreCell.h

+ getSize

获取大小 负责获取当前“更多”单元在 UI 上的显示面积。

+ (CGSize)getSize

Declared In

TUIInputMoreCell.h

Other Methods

– initWithFrame:

- (id)initWithFrame:(CGRect)frame

– setupViews

- (void)setupViews