12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //
- // RQRetrainChooseCell.m
- // jiaPei
- //
- // Created by 张嵘 on 2022/4/24.
- // Copyright © 2022 JCZ. All rights reserved.
- //
- #import "RQRetrainChooseCell.h"
- @interface RQRetrainChooseCell ()
- @property (nonatomic, readwrite, strong) RQRetrainChooseItemViewModel *viewModel;
- @property (weak, nonatomic) IBOutlet UILabel *myTitleLabel;
- @end
- @implementation RQRetrainChooseCell
- #pragma mark - PublicMethods
- + (instancetype)cellWithTableView:(UITableView *)tableView {
- static NSString *ID = @"RQRetrainChooseCell";
- RQRetrainChooseCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
- if (!cell) {
- cell = [self rq_viewFromXib];
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
- }
- return cell;
- }
- - (void)bindViewModel:(RQRetrainChooseItemViewModel *)viewModel {
- _viewModel = viewModel;
- _myTitleLabel.text = viewModel.title;
- }
- #pragma mark - SystemMethods
- - (void)awakeFromNib {
- [super awakeFromNib];
- // Initialization code
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- @end
|