ChangeTopicCell.m 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // ChangeTopicCell.m
  3. // smartRhino
  4. //
  5. // Created by niuzhen on 2019/12/25.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import "ChangeTopicCell.h"
  9. @implementation ChangeTopicCell
  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. + (ChangeTopicCell *)configCell0:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
  19. static NSString *cellIdentifer = @"ChangeTopicCell0";
  20. ChangeTopicCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
  21. if (cell == nil || !cell) {
  22. cell = [[[NSBundle mainBundle] loadNibNamed:@"ChangeTopicCell" owner:nil options:nil] objectAtIndex:0];
  23. }
  24. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  25. return cell;
  26. }
  27. + (ChangeTopicCell *)configCell1:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
  28. static NSString *cellIdentifer = @"ChangeTopicCell1";
  29. ChangeTopicCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
  30. if (cell == nil || !cell) {
  31. cell = [[[NSBundle mainBundle] loadNibNamed:@"ChangeTopicCell" owner:nil options:nil] objectAtIndex:1];
  32. }
  33. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  34. return cell;
  35. }
  36. + (ChangeTopicCell *)configCell2:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
  37. static NSString *cellIdentifer = @"ChangeTopicCell2";
  38. ChangeTopicCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
  39. if (cell == nil || !cell) {
  40. cell = [[[NSBundle mainBundle] loadNibNamed:@"ChangeTopicCell" owner:nil options:nil] objectAtIndex:2];
  41. }
  42. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  43. return cell;
  44. }
  45. + (ChangeTopicCell *)configCell3:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
  46. static NSString *cellIdentifer = @"ChangeTopicCell3";
  47. ChangeTopicCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
  48. if (cell == nil || !cell) {
  49. cell = [[[NSBundle mainBundle] loadNibNamed:@"ChangeTopicCell" owner:nil options:nil] objectAtIndex:3];
  50. }
  51. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  52. return cell;
  53. }
  54. @end