ASUserCenterTableHeadView.m 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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.left.right.mas_equalTo(0);
  24. make.height.mas_equalTo(226);
  25. }];
  26. [self.signV mas_makeConstraints:^(MASConstraintMaker *make) {
  27. make.top.mas_equalTo(self.topV.mas_bottom);
  28. make.left.right.mas_equalTo(0);
  29. make.height.mas_equalTo(183);
  30. }];
  31. [self.itemsV mas_makeConstraints:^(MASConstraintMaker *make) {
  32. make.top.equalTo(self.signV.mas_bottom);
  33. make.left.right.bottom.mas_equalTo(0);
  34. make.height.mas_equalTo(219);
  35. }];
  36. }
  37. - (ASSginView *)signV {
  38. if (!_signV) {
  39. ASSginView *v = [[ASSginView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, 183)];
  40. _signV = v;
  41. }
  42. return _signV;
  43. }
  44. - (ASUserCenterTopView *)topV {
  45. if (!_topV) {
  46. ASUserCenterTopView *v = [[ASUserCenterTopView alloc] initWithFrame:CGRectZero];
  47. _topV = v;
  48. }
  49. return _topV;
  50. }
  51. - (ASUserCenterEnterItemV *)itemsV {
  52. if (!_itemsV) {
  53. ASUserCenterEnterItemV *v = [[ASUserCenterEnterItemV alloc] initWithFrame:CGRectZero];
  54. _itemsV = v;
  55. }
  56. return _itemsV;
  57. }
  58. @end