呈现多个 ModalViewController

发布于 2024-10-17 02:56:04 字数 301 浏览 6 评论 0原文

我想同时展示/展示 2 个 modalviewcontroller。 可以在没有动画的情况下显示第一个,并直接使用动画显示第二个。 这项工作。

这样做的问题是:在播放第二个动画的同时显示第一个动画。那不好。 我该如何解决这个问题?

  • 第一个完全透明?这可能吗,如果可以,怎么做?我尝试过但没有成功。
  • 当第二个模态视图控制器结束其动画时,是否可以在下面“插入”第一个模态视图控制器? (这样,当忽略第二个时,将显示第一个模态)
  • 其他想法?

谢谢 !

I would like to present/show 2 modalviewcontroller at the same time.
It is possible to show the first one with no animation, and directly the second one with the animation. This work.

The problem with this: the first one is shown while the animation of the second one is playing. That's not good.
How can I fix that ?

  • The first one fully transparent ? Is that possible, if yes, how ? I tried without success.
  • Is it possible to "insert" the first modalviewcontroller below when the second one has ended its animation ? (Like this, when dismissing the second, the first modal will be shown)
  • Others ideas ?

Thank you !

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谁许谁一生繁华 2024-10-24 02:56:04

有没有查过“模态”是什么意思?

我建议制作一个只是一个普通的旧视图,并且按照苹果的建议一次只使用一个视图控制器......至少你需要将其中一个制作为一个普通的旧视图控制器,因为当你尝试同时呈现两个模态控制器......

Ever look up what "modal" means?

I would suggest making one just a plain old view and use only one view controller at a time as Apple recommends... at the very least you need to make one of them a plain old view controller, as your hierarchy is all confuzzled when you attempt to present two modal controllers at once...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文