- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *cellPath = @"chatCell";
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
if (!cell)
{
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:cellPath];
}
return cell;
}
数据量太大不建议使用,内存占用稍大,一般的App都没问题的