ASUserCenterTableHeadView.m 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //
  2. // ASUserCenterTableHeadView.m
  3. // Asteria
  4. //
  5. // Created by iOS on 2023/5/16.
  6. //
  7. #import "ASUserCenterTableHeadView.h"
  8. @interface ASUserCenterTableHeadView ()
  9. @end
  10. @implementation ASUserCenterTableHeadView
  11. - (instancetype)initWithFrame:(CGRect)frame {
  12. self = [super initWithFrame:CGRectMake(0, 0, KScreenWidth, 183 + +226 + 219)];
  13. if (self) {
  14. [self configSubV];
  15. }
  16. return self;
  17. }
  18. - (void)configSubV {
  19. [self addSubview:self.topV];
  20. [self addSubview:self.signV];
  21. [self addSubview:self.itemsV];
  22. [self.topV mas_makeConstraints:^(MASConstraintMaker *make) {
  23. make.top.leading.trailing.equalTo(self);
  24. make.height.equalTo(@226);
  25. }];
  26. [self.signV mas_makeConstraints:^(MASConstraintMaker *make) {
  27. make.top.equalTo(self.topV.mas_bottom);
  28. make.leading.trailing.equalTo(self);
  29. make.height.equalTo(@183);
  30. }];
  31. [self.itemsV mas_makeConstraints:^(MASConstraintMaker *make) {
  32. make.top.equalTo(self.signV.mas_bottom);
  33. make.leading.trailing.equalTo(self);
  34. make.height.equalTo(@219);
  35. make.bottom.equalTo(self);
  36. }];
  37. }
  38. - (ASSginView *)signV {
  39. if (!_signV) {
  40. ASSginView *v = [[ASSginView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, 183)];
  41. _signV = v;
  42. }
  43. return _signV;
  44. }
  45. - (ASUserCenterTopView *)topV {
  46. if (!_topV) {
  47. ASUserCenterTopView *v = [[ASUserCenterTopView alloc] initWithFrame:CGRectZero];
  48. _topV = v;
  49. }
  50. return _topV;
  51. }
  52. - (ASUserCenterEnterItemV *)itemsV {
  53. if (!_itemsV) {
  54. ASUserCenterEnterItemV *v = [[ASUserCenterEnterItemV alloc] initWithFrame:CGRectZero];
  55. _itemsV = v;
  56. }
  57. return _itemsV;
  58. }
  59. @end