上图:
CouponCell* cell = [tableView dequeueReusableCellWithIdentifier:@"CouponCellNew"];
if(!cell){
cell = [[[NSBundle mainBundle] loadNibNamed:@"CouponCell" owner:self options:nil] lastObject];
}
此方法只适用于tableview, collectionview目前暂测不适用。
CouponCell* cell = [tableView dequeueReusableCellWithIdentifier:@"CouponCellNew"];
if(!cell){
cell = [[[NSBundle mainBundle] loadNibNamed:@"CouponCell" owner:self options:nil] lastObject];
}
此方法只适用于tableview, collectionview目前暂测不适用。