// // ASUserCenterViewController.m // Asteria // // Created by iOS on 2023/5/15. // #import "ASUserCenterViewController.h" #import "ASUserCenterTableHeadView.h" @interface ASUserCenterViewController () @property (nonatomic,strong) UITableView *tableV; @property (nonatomic,strong) ASUserCenterTableHeadView *tableHeadV; @end @implementation ASUserCenterViewController - (void)viewDidLoad { [super viewDidLoad]; [self.view addSubview:self.tableV]; [self.tableV mas_makeConstraints:^(MASConstraintMaker *make) { make.top.equalTo(self.customNavBar.mas_bottom); make.leading.trailing.equalTo(self.view); make.bottom.equalTo(self.view); }]; [self.tableHeadV.signV configDayArr:4 currentDay:7 status:false]; } - (ASUserCenterTableHeadView *)tableHeadV { if (!_tableHeadV) { ASUserCenterTableHeadView *v = [[ASUserCenterTableHeadView alloc] initWithFrame:CGRectZero]; _tableHeadV = v; } return _tableHeadV; } - (UITableView *)tableV { if (!_tableV) { UITableView *v = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain]; v.tableHeaderView = self.tableHeadV; _tableV = v; } return _tableV; } @end