TUIGroupMembersView Class Reference

Inherits from UIView
Declared in TUIGroupMembersView.h
TUIGroupMembersView.m

Other Methods

  searchBar

搜索栏,能够在当前视图快捷搜索到对应的群成员。

@property (nonatomic, strong) UISearchBar *searchBar

Declared In

TUIGroupMembersView.h

  collectionView

群成员视图的 collectionView。统一存放 TGroupMemberCell。 以多行多列的形式存放 TGroupMemberCell,并配合 flowLayout 进行灵活统一的视图布局。

@property (nonatomic, strong) UICollectionView *collectionView

Declared In

TUIGroupMembersView.h

  flowLayout

collectionView 的流水布局 配合 collectionView,用来维护群成员视图的布局,使群成员单元更加美观。能够设置布局方向、行间距、cell 间距等。

@property (nonatomic, strong) UICollectionViewFlowLayout *flowLayout

Declared In

TUIGroupMembersView.h

  delegate

委托类,负责实现 TGroupMembersViewDelegate 委托。

@property (nonatomic, weak) id<TGroupMembersViewDelegate> delegate

Declared In

TUIGroupMembersView.h

– setData:

设置数据。根据传入的数据对当前视图进行设置。

- (void)setData:(NSMutableArray<TGroupMemberCellData*> *)data

Parameters

data

传入的数据,内含各个群成员的单元数据源(TGroupMemberCellData)。

Declared In

TUIGroupMembersView.h

Other Methods

– initWithFrame:

- (id)initWithFrame:(CGRect)frame

– setupViews

- (void)setupViews

– 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

– searchBarTextDidBeginEditing:

- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar

– searchBarCancelButtonClicked:

- (void)searchBarCancelButtonClicked:(UISearchBar *)searchBar

– searchBarSearchButtonClicked:

- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar

Extension Methods

  data

@property (nonatomic, strong) NSMutableArray *data