来自 modalViewController 的 PushViewController
如果我将视图推送到 navigationController 并以模态方式呈现它,是否可以推送并显示另一个视图,而不必先关闭 modalViewController?谢谢。
If I push a view onto a navigationController and present it modally, is it possible to push and show another view without having to first dismiss the modalViewController? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的问题不太清楚。 “将视图推送到导航控制器上”和“以模态方式呈现它”是两个不同的操作。但是,完成其中任一操作后,您可以再次执行其中任一操作。
NavCon 推送 ViewA
-ViewA然后可以推送ViewB
或
-ViewA可以模态地呈现ViewB。
NavCon 以模态方式显示 ViewA
-ViewA 然后可以推送 ViewB // 这有点奇怪,但可能。
或
-ViewA可以模态地呈现ViewB。
Your question is not quite clear. "push a view onto a navigationController" and "present it modally" are 2 different operations. However, after doing either of these, you can do either of those again.
NavCon push ViewA
-ViewA can then push ViewB
or
-ViewA can present ViewB modally.
NavCon show ViewA modally
-ViewA can then push ViewB // this is a little weird, but possible.
or
-ViewA can present ViewB modally.