// // ASGoodsReviewFootCell.m // Asteria // // Created by xingyu on 2024/5/25. // #import "ASGoodsReviewFootCell.h" @interface ASGoodsReviewFootCell() @property (nonatomic, strong) UIButton *viewMoreBtn; @end @implementation ASGoodsReviewFootCell - (void)setupSubviewS { [self.contentView addSubview:self.viewMoreBtn]; [self.viewMoreBtn mas_makeConstraints:^(MASConstraintMaker *make) { make.top.mas_equalTo(10); make.height.mas_equalTo(36); make.width.mas_equalTo(200); make.centerX.mas_equalTo(self.contentView); make.bottom.mas_equalTo(-20); }]; } - (void)_btnClick { if (self.currencyparameterClose) { self.currencyparameterClose(5, nil); } } - (UIButton *)viewMoreBtn { if (!_viewMoreBtn) { _viewMoreBtn = [UIButton buttonWithType:UIButtonTypeCustom]; _viewMoreBtn.titleLabel.font = [UIFont fontWithName:Rob_Regular size:16]; [_viewMoreBtn setTitle:@"VIEW MORE" forState:UIControlStateNormal]; [_viewMoreBtn setTitleColor:Col_000 forState:UIControlStateNormal]; _viewMoreBtn.backgroundColor = Col_FFF; [_viewMoreBtn addTarget:self action:@selector(_btnClick) forControlEvents:UIControlEventTouchUpInside]; TT_ViewBorderRadius(_viewMoreBtn, 4, 1, Col_000); } return _viewMoreBtn; } @end