4
This commit is contained in:
@@ -25,10 +25,13 @@
|
||||
[self setupMas:topV];
|
||||
// 创建sheetVC
|
||||
HomeSheetVC *vc = [[HomeSheetVC alloc] init];
|
||||
if (<#condition#>) {
|
||||
<#statements#>
|
||||
// 使用宏,避免误写成函数指针判断导致恒为 true
|
||||
if (KB_DEVICE_HAS_NOTCH) {
|
||||
vc.minHeight = KB_SCREEN_HEIGHT - topV - 34;
|
||||
}else{
|
||||
vc.minHeight = KB_SCREEN_HEIGHT - topV;
|
||||
|
||||
}
|
||||
vc.minHeight = KB_SCREEN_HEIGHT - topV;
|
||||
vc.topInset = 100;
|
||||
[self presentPanModal:vc];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user