53 lines
956 B
Objective-C
53 lines
956 B
Objective-C
//
|
|
// HomeVC.m
|
|
// keyBoard
|
|
//
|
|
// Created by Mac on 2025/10/29.
|
|
//
|
|
|
|
#import "HomeVC.h"
|
|
#import "HomeHeadView.h"
|
|
#import "HomeSheetVC.h"
|
|
|
|
@interface HomeVC ()
|
|
@property (nonatomic, strong) HomeHeadView *headView;
|
|
|
|
@end
|
|
|
|
@implementation HomeVC
|
|
|
|
- (void)viewDidLoad {
|
|
[super viewDidLoad];
|
|
self.view.backgroundColor = [UIColor whiteColor];
|
|
[self.view addSubview:self.headView];
|
|
// 创建sheetVC
|
|
HomeSheetVC *vc = [HomeSheetVC new];
|
|
vc.minHeight = 300;
|
|
vc.topInset = 100;
|
|
[self presentPanModal:vc];
|
|
}
|
|
|
|
- (void)setupMas{
|
|
[self.headView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
make.left.right.equalTo(self.view);
|
|
make.top.equalTo(self.view);
|
|
|
|
}];
|
|
}
|
|
|
|
- (void)viewWillAppear:(BOOL)animated{
|
|
[super viewWillAppear:animated];
|
|
|
|
}
|
|
|
|
|
|
#pragma mark - lazy
|
|
- (HomeHeadView *)headView{
|
|
if (!_headView) {
|
|
_headView = [[HomeHeadView alloc] init];
|
|
}
|
|
return _headView;
|
|
}
|
|
|
|
@end
|