TableVIewCell 几种创建方式 的细节

2016-01-27  本文已影响30人  KeepFighting

1.第一种

staticNSString* ID =@"cell";

UITableViewCell* cell = [tableViewdequeueReusableCellWithIdentifier:ID];

if(cell ==nil) {

cell = [[UITableViewCellalloc]initWithStyle:UITableViewCellStyleSubtitlereuseIdentifier:ID];

}

第二种

上一篇下一篇

猜你喜欢

热点阅读