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];
}
第二种
本文标题:TableVIewCell 几种创建方式 的细节
本文链接:https://www.haomeiwen.com/subject/nkbckttx.html
网友评论