Inherits from NSObject
Conforms to UITableViewDataSource
UITableViewDelegate
Declared in SGSBaseTableViewProtocol.h

Tasks

Properties

delegate

@property (nonatomic, strong) id<TableViewCellDelegate> delegate

Instance Methods

initWithItems:cellIdentifier:cellConfigureBlock:

- (id)initWithItems:(NSArray *)aItems cellIdentifier:(NSString *)aCellIdentifier cellConfigureBlock:(TableViewCellConfigurate)aCellConfigureBlock
Discussion

协议构造器2:默认只有一个section时使用

@param aItems @param aCellIdentifier @param aCellConfigureBlock

Return Value

Protocal Object

Declared In

SGSBaseTableViewProtocol.h

initWithItems:cellIdentifier:numberOfSections:numberOfRowsInSectionConfigureBlock:cellConfigureBlock:

- (id)initWithItems:(NSArray *)aItems cellIdentifier:(NSString *)aCellIdentifier numberOfSections:(NSInteger)aSectionNumber numberOfRowsInSectionConfigureBlock:(TableViewNumberOfRowsInSectionConfigurate)aNunberOfRowsInSectionConfigureBlock cellConfigureBlock:(TableViewCellConfigurate)aCellConfigureBlock
Discussion

协议构造器1:有多个section,每个section中cell行数不定时使用

@param aItems @param aCellIdentifier

Parameters

aSectionNumber

section的数量

aNunberOfRowsInSectionConfigureBlock

配置每个section中cell的行数

aCellConfigureBlock

配置每个cell的展现方式

Return Value

Protocal Object

Declared In

SGSBaseTableViewProtocol.h