用NSBUNDLE自定义一个重复使用的TABLEVIEWCELL
ProductInfoTableViewCell *cell = (ProductInfoTableViewCell* )[tableView dequeueReusableCellWithIdentifier:kProductCellID];
//UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kProductCellID];
if (cell == nil) {
cell = [[[NSBundle mainBundle] loadNibNamed:@"ProductInfoTableViewCell" owner:self options:nil] lastObject];
}
posted on 2011-08-06 20:41 Cheney Shen 阅读(303) 评论(0) 编辑 收藏 举报