- (NSArray *)cellsForTableView:(UITableView *)tableView{
NSInteger sections = tableView.numberOfSections;
NSMutableArray *cells = [[NSMutableArray alloc] init];
for (int section = 0; section < sections; section++) {
NSInteger rows = [tableView numberOfRowsInSection:section];
for (int row = 0; row < rows; row++) {
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:row inSection:section];
[cells addObject:[tableView cellForRowAtIndexPath:indexPath]];
}
}
return cells;
扫描二维码关注公众号,回复:
10363719 查看本文章
}
目前还没有测试能不能得到复用池中的Cell