// // ASBaseViewController.m // Asteria // // Created by iOS on 2023/4/24. // #import "ASBaseViewController.h" @interface ASBaseViewController () @end @implementation ASBaseViewController - (void)viewDidLoad { [super viewDidLoad]; [self addBaseNav]; self.view.backgroundColor = _F8F8F8; } - (void)addBaseNav { [self.view addSubview:self.statusBgV]; [self.view addSubview:self.customNavBar]; self.statusBgV.frame = CGRectMake(0, 0, KScreenWidth, kStatusBarH); self.customNavBar.frame = CGRectMake(0, kStatusBarH, KScreenWidth, kCustomNavBarH); } - (UIView *)statusBgV { if (!_statusBgV) { UIView *v = [UIView baseV]; v.backgroundColor = _32CFB0; _statusBgV = v; } return _statusBgV; } - (UIView *)customNavBar { if (!_customNavBar) { UIView *v = [UIView baseV]; v.backgroundColor = _32CFB0; _customNavBar = v; } return _customNavBar; } @end