1.第一種
staticNSString* ID =@"cell";
UITableViewCell* cell = [tableViewdequeueReusableCellWithIdentifier:ID];
if(cell ==nil) {
cell = [[UITableViewCellalloc]initWithStyle:UITableViewCellStyleSubtitlereuseIdentifier:ID];
}
第二種
1.第一種
staticNSString* ID =@"cell";
UITableViewCell* cell = [tableViewdequeueReusableCellWithIdentifier:ID];
if(cell ==nil) {
cell = [[UITableViewCellalloc]initWithStyle:UITableViewCellStyleSubtitlereuseIdentifier:ID];
}
第二種