1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // RQFreeTryNoteCell.m
- // SDJK
- //
- // Created by 张嵘 on 2022/6/28.
- //
- #import "RQFreeTryNoteCell.h"
- @interface RQFreeTryNoteCell ()
- @property (nonatomic, readwrite, strong) RQFreeTryNoteItemViewModel *viewModel;
- @property (weak, nonatomic) IBOutlet UILabel *myTitleLabel;
- @property (weak, nonatomic) IBOutlet UIImageView *myBgImageView;
- @end
- @implementation RQFreeTryNoteCell
- #pragma mark - PublicMethods
- + (instancetype)cellWithTableView:(UITableView *)tableView {
- static NSString *ID = @"RQFreeTryNoteCell";
- RQFreeTryNoteCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
- if (!cell) {
- cell = [self rq_viewFromXib];
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
- }
- return cell;
- }
- - (void)bindViewModel:(RQFreeTryNoteItemViewModel *)viewModel {
- _viewModel = viewModel;
- _myTitleLabel.text = viewModel.title;
- _myBgImageView.image = RQImageNamed(viewModel.icon);
- }
- #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
|