RQPlaceDetailNoteIntroduceCell.m 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // RQPlaceDetailNoteIntroduceCell.m
  3. // JiaPei
  4. //
  5. // Created by 张嵘 on 2023/4/20.
  6. //
  7. #import "RQPlaceDetailNoteIntroduceCell.h"
  8. @interface RQPlaceDetailNoteIntroduceCell ()
  9. @property (nonatomic, readwrite, strong) RQPlaceDetailNoteIntroduceItemViewModel *viewModel;
  10. @end
  11. @implementation RQPlaceDetailNoteIntroduceCell
  12. #pragma mark - PublicMethods
  13. + (instancetype)cellWithTableView:(UITableView *)tableView {
  14. static NSString *ID = @"RQPlaceDetailNoteIntroduceCell";
  15. RQPlaceDetailNoteIntroduceCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
  16. if (!cell) {
  17. cell = [self rq_viewFromXib];
  18. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  19. }
  20. return cell;
  21. }
  22. - (void)bindViewModel:(RQPlaceDetailNoteIntroduceItemViewModel *)viewModel {
  23. _viewModel = viewModel;
  24. }
  25. #pragma mark - SystemMethods
  26. - (void)awakeFromNib {
  27. [super awakeFromNib];
  28. }
  29. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  30. [super setSelected:selected animated:animated];
  31. // Configure the view for the selected state
  32. }
  33. @end