NewTopicCell.m 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // NewTopicCell.m
  3. // smartRhino
  4. //
  5. // Created by niuzhen on 2019/12/16.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import "NewTopicCell.h"
  9. @implementation NewTopicCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. }
  13. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  14. [super setSelected:selected animated:animated];
  15. // Configure the view for the selected state
  16. }
  17. + (NewTopicCell *)configCell0:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
  18. static NSString *cellIdentifer = @"NewTopicCell0";
  19. NewTopicCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
  20. if (cell == nil) {
  21. cell = [[[NSBundle mainBundle] loadNibNamed:@"NewTopicCell" owner:nil options:nil] objectAtIndex:0];
  22. }
  23. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  24. return cell;
  25. }
  26. + (NewTopicCell *)configCell1:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
  27. static NSString *cellIdentifer = @"NewTopicCell1";
  28. NewTopicCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
  29. if (cell == nil) {
  30. cell = [[[NSBundle mainBundle] loadNibNamed:@"NewTopicCell" owner:nil options:nil] objectAtIndex:1];
  31. }
  32. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  33. return cell;
  34. }
  35. + (NewTopicCell *)configCell2:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
  36. static NSString *cellIdentifer = @"NewTopicCell2";
  37. NewTopicCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
  38. if (cell == nil) {
  39. cell = [[[NSBundle mainBundle] loadNibNamed:@"NewTopicCell" owner:nil options:nil] objectAtIndex:2];
  40. }
  41. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  42. return cell;
  43. }
  44. + (NewTopicCell *)configCell3:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
  45. static NSString *cellIdentifer = @"NewTopicCell3";
  46. NewTopicCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
  47. if (cell == nil) {
  48. cell = [[[NSBundle mainBundle] loadNibNamed:@"NewTopicCell" owner:nil options:nil] objectAtIndex:3];
  49. }
  50. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  51. return cell;
  52. }
  53. @end