RQExerciseOptionSureBtnCell.m 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // RQExerciseOptionSureBtnCell.m
  3. // JSJP
  4. //
  5. // Created by 张嵘 on 2021/8/23.
  6. //
  7. #import "RQExerciseOptionSureBtnCell.h"
  8. @interface RQExerciseOptionSureBtnCell ()
  9. @property (nonatomic, readwrite, strong) RQExerciseOptionSureBtnItemViewModel *viewModel;
  10. @end
  11. @implementation RQExerciseOptionSureBtnCell
  12. #pragma mark - PublicMethods
  13. + (instancetype)cellWithTableView:(UITableView *)tableView {
  14. static NSString *ID = @"RQExerciseOptionSureBtnCell";
  15. RQExerciseOptionSureBtnCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
  16. if (!cell) {
  17. cell = [self rq_viewFromXib];
  18. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  19. }
  20. return cell;
  21. }
  22. - (void)bindViewModel:(RQExerciseOptionSureBtnItemViewModel *)viewModel {
  23. _viewModel = viewModel;
  24. }
  25. - (void)awakeFromNib {
  26. [super awakeFromNib];
  27. // Initialization code
  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