美文网首页
iOS Xib Cell

iOS Xib Cell

作者: 韩微 | 来源:发表于2016-06-13 15:59 被阅读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;

}

}

}

相关文章

网友评论

      本文标题:iOS Xib Cell

      本文链接:https://www.haomeiwen.com/subject/ujpydttx.html