呈现多个 ModalViewController
我想同时展示/展示 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有没有查过“模态”是什么意思?
我建议制作一个只是一个普通的旧视图,并且按照苹果的建议一次只使用一个视图控制器......至少你需要将其中一个制作为一个普通的旧视图控制器,因为当你尝试同时呈现两个模态控制器......
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...