Files
keyboard/keyBoard/Class/Home/VC/HomeVC.m

53 lines
956 B
Mathematica
Raw Normal View History

2025-10-29 14:17:26 +08:00
//
// HomeVC.m
// keyBoard
//
// Created by Mac on 2025/10/29.
//
#import "HomeVC.h"
2025-11-06 13:18:27 +08:00
#import "HomeHeadView.h"
2025-11-05 22:04:56 +08:00
#import "HomeSheetVC.h"
2025-10-29 14:17:26 +08:00
2025-11-06 13:18:27 +08:00
@interface HomeVC ()
@property (nonatomic, strong) HomeHeadView *headView;
2025-10-29 14:17:26 +08:00
@end
@implementation HomeVC
- (void)viewDidLoad {
[super viewDidLoad];
2025-10-29 14:28:57 +08:00
self.view.backgroundColor = [UIColor whiteColor];
2025-11-06 13:18:27 +08:00
[self.view addSubview:self.headView];
// sheetVC
2025-11-05 22:04:56 +08:00
HomeSheetVC *vc = [HomeSheetVC new];
vc.minHeight = 300;
vc.topInset = 100;
[self presentPanModal:vc];
2025-10-29 14:17:26 +08:00
}
2025-11-06 13:18:27 +08:00
- (void)setupMas{
[self.headView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(self.view);
make.top.equalTo(self.view);
}];
}
2025-11-03 15:04:19 +08:00
- (void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];
2025-10-29 16:26:57 +08:00
}
2025-11-03 16:37:28 +08:00
2025-11-06 13:18:27 +08:00
#pragma mark - lazy
- (HomeHeadView *)headView{
if (!_headView) {
_headView = [[HomeHeadView alloc] init];
2025-11-03 16:37:28 +08:00
}
2025-11-06 13:18:27 +08:00
return _headView;
2025-11-03 16:37:28 +08:00
}
2025-10-29 14:17:26 +08:00
@end