Why set tableFooterView in - cb_makeDataSource: and - cb_makeSectionWithData:
if(!self.tableFooterView) {
self.tableFooterView = [UIView new];
}
If set tableFooterView, where is tableHeaderView?
For grouped table view,return 0 in - tableView:heightForHeaderInSection: and - tableView:heightForFooterInSection: can cause table view use default height(not 0, greater than 30) for headers and footers, for this reason, return a small enough value (for example, FLT_EPSILON or DBL_EPSILON), then the height will be simulate 0.
This toolkit is very useful.
Why set
tableFooterViewin- cb_makeDataSource:and- cb_makeSectionWithData:If set
tableFooterView, where istableHeaderView?For grouped table view,return 0 in
- tableView:heightForHeaderInSection:and- tableView:heightForFooterInSection:can cause table view use default height(not 0, greater than 30) for headers and footers, for this reason, return a small enough value (for example,FLT_EPSILONorDBL_EPSILON), then the height will be simulate 0.This toolkit is very useful.