1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // RQPlaceDetaiIQuestionCell.m
- // JiaPei
- //
- // Created by 张嵘 on 2023/4/21.
- //
- #import "RQPlaceDetaiIQuestionCell.h"
- @interface RQPlaceDetaiIQuestionCell ()
- @property (nonatomic, readwrite, strong) RQPlaceDetaiIQuestionItemViewModel *viewModel;
- @property (weak, nonatomic) IBOutlet UIImageView *myBgImageView;
- @end
- @implementation RQPlaceDetaiIQuestionCell
- #pragma mark - PublicMethods
- + (instancetype)cellWithTableView:(UITableView *)tableView {
- static NSString *ID = @"RQPlaceDetaiIQuestionCell";
- RQPlaceDetaiIQuestionCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
- if (!cell) {
- cell = [self rq_viewFromXib];
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
- }
- return cell;
- }
- - (void)bindViewModel:(RQPlaceDetaiIQuestionItemViewModel *)viewModel {
- _viewModel = viewModel;
- }
- #pragma mark - SystemMethods
- - (void)awakeFromNib {
- [super awakeFromNib];
- UIImage *image = [UIImage imageNamed:@"课程介绍框"];
- image = [image resizableImageWithCapInsets:UIEdgeInsetsMake(16.f, 16.f, 16.f, 16.f) resizingMode:UIImageResizingModeTile];
- _myBgImageView.image = image;
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- @end
|