1、常规
static NSString *cellIdentifier = @"Cell_ID";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier];
}
2、用xib加载
if (cell == nil) {
<span style="white-space:pre"> </span>NSArray array = [[NSBundle mainBundle]loadNibNamed:@"Cell_ID" owner:self options:nil];
<span style="white-space:pre"> </span>cell =[array objectAtIndex:0];
}
3、用storyBoard加载(要在股市版中画cell以及identifier)
//故事版中加载cell
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell_ID" forIndexPath:indexPath];
4、子类化