gpt4 book ai didi

ios - 在 containerView 中模态一个 viewController

转载 作者:行者123 更新时间:2023-11-29 00:26:52 26 4
gpt4 key购买 nike

我有一个嵌入了 UIViewController(名为 embedVC)的 containerView。

在 embedVC 中,我想模态另一个 ViewController(名为 modalVC),我希望 modalVC 只覆盖 embedVC。

我该怎么办?

2017-03-16:

我尝试使用带有 EmbeddedVC 的 View 来模拟模态。但是我有一个问题:

模态前: enter image description here

模态后: enter image description here

我的设计: enter image description here

所以我认为我仍然需要一个真正的模态转场来将 modalView 置于最前面。

最佳答案

I wish the modalVC just cover the embedVC

代替使用 modal UIViewController,可以实现具有适当动画效果的 UIView,仅包含 embedVC 的边界。

关于ios - 在 containerView 中模态一个 viewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42749431/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com