12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- //
- // 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, AScreenWidth, kStatusBarH);
- self.customNavBar.frame = CGRectMake(0, kStatusBarH, AScreenWidth, 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
|