This commit is contained in:
2025-11-06 14:02:22 +08:00
parent d7874829d9
commit 15fc9621cd
15 changed files with 337 additions and 16 deletions

View File

@@ -19,19 +19,22 @@
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor = [UIColor whiteColor];
CGFloat topV = KBFit(500);
[self.view addSubview:self.headView];
[self setupMas:topV];
// sheetVC
HomeSheetVC *vc = [HomeSheetVC new];
vc.minHeight = 300;
HomeSheetVC *vc = [[HomeSheetVC alloc] init];
vc.minHeight = KB_SCREEN_HEIGHT - topV - 30;
vc.topInset = 100;
[self presentPanModal:vc];
}
- (void)setupMas{
- (void)setupMas:(CGFloat)headViewTopV{
[self.headView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(self.view);
make.top.equalTo(self.view);
make.height.mas_equalTo(headViewTopV);
}];
}