// // GoosSizeSelectCell.m // westkissMob // // Created by 王猛 on 2022/9/22. // #import "GoosSizeSelectCell.h" #import "RadioButton.h" @interface GoosSizeSelectCell() @property (nonatomic, strong) UILabel *option_nameLab; @property(nonatomic, strong) QMUIFloatLayoutView *floatLayoutView; @property (nonatomic, strong) NSMutableArray *radBtnAry; @end @implementation GoosSizeSelectCell - (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 } - (void)setupSubviewS{ self.selectTag = 0; [self.contentView addSubview:self.option_nameLab]; [self.contentView addSubview:self.floatLayoutView]; [self.option_nameLab mas_makeConstraints:^(MASConstraintMaker *make) { make.height.mas_equalTo(18); make.top.mas_equalTo(20); make.left.mas_equalTo(20); make.right.mas_equalTo(-20); }]; [self.floatLayoutView mas_makeConstraints:^(MASConstraintMaker *make) { make.top.mas_equalTo(self.option_nameLab.mas_bottom).offset(10); make.left.mas_equalTo(10); make.right.mas_equalTo(-10); make.bottom.mas_equalTo(-10); }]; } -(void)change_Option_nameLabAlignmentLeft{ self.option_nameLab.textAlignment = NSTextAlignmentLeft; } - (void)configData:(id)Data{ OptionsModel *optionM = (OptionsModel *)Data; self.optionModel = optionM; self.option_nameLab.text = [NSString stringWithFormat:@"%@",optionM.product_sku]; while (self.floatLayoutView.subviews.count) { [self.floatLayoutView.subviews.lastObject removeFromSuperview]; } [self.radBtnAry removeAllObjects]; for (int i =0; i