12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- //
- // ASGoodsReviewFootCell.m
- // Asteria
- //
- // Created by xingyu on 2024/5/25.
- //
- #import "ASGoodsReviewFootCell.h"
- @interface ASGoodsReviewFootCell()
- @end
- @implementation ASGoodsReviewFootCell
- - (void)setupSubviewS {
- // UIView *backView = [[UIView alloc] init];
- // [self.contentView addSubview:backView];
- // [backView mas_makeConstraints:^(MASConstraintMaker *make) {
- // make.left.mas_equalTo(10);
- // make.top.mas_equalTo(10);
- // make.right.mas_equalTo(-10);
- //// make.height.mas_equalTo(45);
- // make.bottom.mas_equalTo(0);
- // }];
-
- UIButton *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);
- [self.contentView addSubview:viewMoreBtn];
- [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(-10);
- }];
-
- }
- - (void)_btnClick {
- if (self.currencyparameterClose) {
- self.currencyparameterClose(5, nil);
- }
- }
- @end
|