12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- //
- // 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.left.right.mas_equalTo(0);
- make.height.mas_equalTo(226);
- }];
- [self.signV mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.mas_equalTo(self.topV.mas_bottom);
- make.left.right.mas_equalTo(0);
- make.height.mas_equalTo(183);
- }];
- [self.itemsV mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.equalTo(self.signV.mas_bottom);
- make.left.right.bottom.mas_equalTo(0);
- make.height.mas_equalTo(219);
- }];
-
- }
- - (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
|