我正在使用 MDCBottomSheetController
以下是我展示底页控制器的代码
let bottomSheet: MDCBottomSheetController = MDCBottomSheetController(contentViewController: viewController)
// Present the bottom sheet
bottomSheet.shouldFlashScrollIndicatorsOnAppearance = true;
if openFor == SearchBottomSheetViewController.OPEN_FOR_DATE {
bottomSheet.preferredContentSize = CGSize(width: self.view.frame.size.width, height: self.view.frame.size.height * 0.3)
}else {
bottomSheet.preferredContentSize = CGSize(width: self.view.frame.size.width, height: 3 * self.view.frame.size.height / 4)
}
// bottomSheet.dismiss(animated: <#T##Bool#>, completion: <#T##(() -> Void)?##(() -> Void)?##() -> Void#>)
present(bottomSheet, animated: true, completion: nil)
当显示软键盘板时,底部表单 ui 被向上推我不希望 UI 在显示键盘时被向上推
有关问题,请参阅下面的 gif