// // ASUserCenterEnterItemV.m // Asteria // // Created by iOS on 2023/5/16. // #import "ASUserCenterEnterItemV.h" #import "ASEnterItemV.h" @interface ASUserCenterEnterItemV () @property (nonatomic, strong) UIView *bgV; @property (nonatomic, strong) UIStackView *enterStackV; @property (nonatomic, strong) UIStackView *enterStackV2; @property (nonatomic, strong) NSArray *itemsV; @end @implementation ASUserCenterEnterItemV - (instancetype)initWithFrame:(CGRect)frame { CGRect rect = frame; rect.size = CGSizeMake(KScreenWidth, 219); self = [super initWithFrame:rect]; if (self) { [self createItemsV]; [self configSubV]; } return self; } - (void)configSubV { self.backgroundColor = Col_FFF; [self addSubview:self.bgV]; [self.bgV mas_makeConstraints:^(MASConstraintMaker *make) { make.leading.top.equalTo(self).offset(10); make.bottom.trailing.equalTo(self).offset(-10); }]; UIStackView *totalSt = [UIStackView baseStackV:true]; totalSt.distribution = UIStackViewDistributionFillEqually; totalSt.spacing = 10; [totalSt addArrangedSubview:self.enterStackV]; [totalSt addArrangedSubview:self.enterStackV2]; [self.bgV addSubview:totalSt]; [totalSt mas_makeConstraints:^(MASConstraintMaker *make) { make.leading.equalTo(self).offset(15); make.trailing.equalTo(self).offset(-15); make.top.equalTo(self).offset(30); make.bottom.equalTo(self).offset(-30); }]; for (int i=0; i