标签:
UitableView 一般的情况都是在
(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
if (!cell) {
cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:cellID];
}
cell.textLabel.text = self.bodyarray[indexPath.row];
cell.detailTextLabel.text = self.timeArray[indexPath.row];
return cell;
}
如果不写判断if(!cell)的话 就需要些注册
[self.tableview registerClass:[UITableViewCell class] forCellReuseIdentifier:cellID];
标签:
原文地址:http://www.cnblogs.com/liuxingchen/p/5557238.html