taiyang2014

xib下这种方式创建cell

  这种方法在iOS5.0之前是不能够创建成功的.
  MEConvertListTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MEConvertListTableViewCell" forIndexPath:indexPath];
 
static NSString *CellIdentifier = @"MEVedioSortTableViewCell";
    MEVedioSortTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"MEVedioSortTableViewCell" owner:nil options:nil] objectAtIndex:0];
    }

posted on 2015-12-04 17:26  taiyang2014  阅读(149)  评论(0编辑  收藏  举报

导航