// // ASUserCenterTableHeadView.m // Asteria // // Created by iOS on 2023/5/16. // #import "ASUserCenterTableHeadView.h" @interface ASUserCenterTableHeadView () @end @implementation ASUserCenterTableHeadView - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:CGRectMake(0, 0, KScreenWidth, 183 + +226 + 219)]; if (self) { [self configSubV]; } return self; } - (void)configSubV { [self addSubview:self.topV]; [self addSubview:self.signV]; [self addSubview:self.itemsV]; [self.topV mas_makeConstraints:^(MASConstraintMaker *make) { make.top.leading.trailing.equalTo(self); make.height.equalTo(@226); }]; [self.signV mas_makeConstraints:^(MASConstraintMaker *make) { make.top.equalTo(self.topV.mas_bottom); make.leading.trailing.equalTo(self); make.height.equalTo(@183); }]; [self.itemsV mas_makeConstraints:^(MASConstraintMaker *make) { make.top.equalTo(self.signV.mas_bottom); make.leading.trailing.equalTo(self); make.height.equalTo(@219); make.bottom.equalTo(self); }]; } - (ASSginView *)signV { if (!_signV) { ASSginView *v = [[ASSginView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, 183)]; _signV = v; } return _signV; } - (ASUserCenterTopView *)topV { if (!_topV) { ASUserCenterTopView *v = [[ASUserCenterTopView alloc] initWithFrame:CGRectZero]; _topV = v; } return _topV; } - (ASUserCenterEnterItemV *)itemsV { if (!_itemsV) { ASUserCenterEnterItemV *v = [[ASUserCenterEnterItemV alloc] initWithFrame:CGRectZero]; _itemsV = v; } return _itemsV; } @end