TUIMoreView Class Reference
Inherits from | UIView |
---|---|
Declared in | TUIMoreView.h TUIMoreView.m |
Overview
【模块名称】TUIMoreView 【功能说明】更多视图,在点击输入框最右侧“+”后显示。 本视图能够为您在当前页面提供功能扩展。比如: 1、拍摄。调用系统相机拍摄照片并进行发送。 2、图片。从系统相册中选择图片并发送。 3、视频。从系统相册中选择视频并发送。 4、文件。从系统文件中选择文件并发送。 您还可以根据需求对本视图进行个性化拓展,增加其他功能。
Other Methods
lineView
线视图 在视图中的分界线,使得表情视图与其他视图在视觉上区分,从而让表情视图在显示逻辑上更加清晰有序。
@property (nonatomic, strong) UIView *lineView
Declared In
TUIMoreView.h
moreCollectionView
更多视图的 CollectionView 包含多个更多视图单元(按钮),并配合 moreFlowLayout 进行灵活统一的布局。
@property (nonatomic, strong) UICollectionView *moreCollectionView
Declared In
TUIMoreView.h
moreFlowLayout
moreCollectionView 的流水布局 配合 moreCollectionView,用来维护表情视图的布局,使表情排布更加美观。能够设置布局方向、行间距、cell 间距等。
@property (nonatomic, strong) UICollectionViewFlowLayout *moreFlowLayout
Declared In
TUIMoreView.h
pageControl
moreView的页面控制器。 用于 moreCell 的多页浏览,能够实现滑动切换更多视图页,在更多视图下方以原点形式显示总页数以及当前页数等功能。
@property (nonatomic, strong) UIPageControl *pageControl
Declared In
TUIMoreView.h
delegate
被委托者 需要实现协议 TMoreViewDelegate 中要求的功能。
@property (nonatomic, weak) id<TMoreViewDelegate> delegate
Declared In
TUIMoreView.h
– setData:
设置数据 用来进行 TUIMoreView 的数据初始化或在有需要时设置新的数据。 数组中存放的元素类型为 TUIInputMoreCellData。
- (void)setData:(NSArray *)data
Parameters
data |
需要设置的数据 |
---|
Declared In
TUIMoreView.h
Other Methods
– numberOfSectionsInCollectionView:
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
– collectionView:numberOfItemsInSection:
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
– collectionView:cellForItemAtIndexPath:
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
– collectionView:didSelectItemAtIndexPath:
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
– collectionView:layout:sizeForItemAtIndexPath:
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath