【发布时间】:2019-01-25 03:44:24
【问题描述】:
我现在正在展示一个几乎透明的 ViewController 而不是另一个,但它禁用了与下面的 ViewController 的交互。这是我现在使用的代码:
topController.modalPresentationStyle = UIModalPresentationStyle.overCurrentContext
bottomController.modalPresentationStyle = UIModalPresentationStyle.currentContext
bottomController.present(topController, animated: true, completion: nil)
如何将顶部控制器部分呈现在底部控制器之上,同时仍允许底部控制器与之交互?
【问题讨论】:
-
添加和动画 uiview 也会很有帮助。
-
@MuhammedAzharudheen 我刚刚这样做了,但是如果不禁用与它的交互,我无法设置顶部 UIViewController 的框架。
标签: ios swift uiviewcontroller presentviewcontroller