MyTDTopicSelectExtentCell.m 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // MyTDTopicSelectExtentCell.m
  3. // smartRhino
  4. //
  5. // Created by niuzhen on 2019/12/20.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import "MyTDTopicSelectExtentCell.h"
  9. @implementation MyTDTopicSelectExtentCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. }
  14. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  15. [super setSelected:selected animated:animated];
  16. // Configure the view for the selected state
  17. }
  18. + (MyTDTopicSelectExtentCell *)configCell0:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
  19. static NSString *cellIdentifer = @"MyTDTopicSelectExtentCell0";
  20. MyTDTopicSelectExtentCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
  21. if (cell == nil || !cell) {
  22. cell = [[[NSBundle mainBundle] loadNibNamed:@"MyTDTopicSelectExtentCell" owner:nil options:nil] objectAtIndex:0];
  23. }
  24. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  25. return cell;
  26. }
  27. + (MyTDTopicSelectExtentCell *)configCell1:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
  28. static NSString *cellIdentifer = @"MyTDTopicSelectExtentCell1";
  29. MyTDTopicSelectExtentCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
  30. if (cell == nil || !cell) {
  31. cell = [[[NSBundle mainBundle] loadNibNamed:@"MyTDTopicSelectExtentCell" owner:nil options:nil] objectAtIndex:1];
  32. }
  33. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  34. return cell;
  35. }
  36. @end