ASUserCenterViewController.m 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // ASUserCenterViewController.m
  3. // Asteria
  4. //
  5. // Created by iOS on 2023/5/15.
  6. //
  7. #import "ASUserCenterViewController.h"
  8. #import "ASUserCenterTableHeadView.h"
  9. @interface ASUserCenterViewController ()
  10. @property (nonatomic,strong) UITableView *tableV;
  11. @property (nonatomic,strong) ASUserCenterTableHeadView *tableHeadV;
  12. @end
  13. @implementation ASUserCenterViewController
  14. - (void)viewDidLoad {
  15. [super viewDidLoad];
  16. [self.view addSubview:self.tableV];
  17. [self.tableV mas_makeConstraints:^(MASConstraintMaker *make) {
  18. make.top.equalTo(self.customNavBar.mas_bottom);
  19. make.leading.trailing.equalTo(self.view);
  20. make.bottom.equalTo(self.view);
  21. }];
  22. [self.tableHeadV.signV configDayArr:4 currentDay:7 status:false];
  23. }
  24. - (ASUserCenterTableHeadView *)tableHeadV {
  25. if (!_tableHeadV) {
  26. ASUserCenterTableHeadView *v = [[ASUserCenterTableHeadView alloc] initWithFrame:CGRectZero];
  27. _tableHeadV = v;
  28. }
  29. return _tableHeadV;
  30. }
  31. - (UITableView *)tableV {
  32. if (!_tableV) {
  33. UITableView *v = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
  34. v.tableHeaderView = self.tableHeadV;
  35. _tableV = v;
  36. }
  37. return _tableV;
  38. }
  39. @end