iOS Xib Cell

2016-06-13  本文已影响197人  韩微

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

{

          NSString *identifier = NSStringFromClass([BulletinCard2 class]);

          UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];

           if (cell == nil) {

                  cell = [[[NSBundle mainBundle] loadNibNamed:identifier owner:nil options:nil] objectAtIndex:0];

                  cell.selectionStyle = UITableViewCellSelectionStyleNone;

}

            if (cell && [cell isKindOfClass:[BulletinCard2 class]]) {

                    BulletinCard2 *bulletinTitleCard = (BulletinCard2 *)cell;

                      if (_bulletinInfo && bulletinTitleCard) {

                     }

             }

return cell;

}

}

}

上一篇 下一篇

猜你喜欢

热点阅读