在将新界面推送到其上后,如何消除包含界面控制器的两个页面中不需要的页面?在 Watchkit 上 [英] How can I dismiss unwanted pages of my two pages consisting interface controller after pushing a new interface over it? On Watchkit

查看:55
本文介绍了在将新界面推送到其上后,如何消除包含界面控制器的两个页面中不需要的页面?在 Watchkit 上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在单击包含 rootController 的两个页面中的一个按钮后,我试图推送一个界面,但得到了一个奇怪的结果.

I was trying to push an interface after clicking at one button of my two pages consisting rootController and got a weird result.

我请求的控制器(第二张图片)被推到了我的第一页……但是,我的根控制器的第二页仍然存在,我可以进入它.

My requested controller (second image) gets pushed over my first page..but, the second page of my root controller is still there and I can segue into it.

我不想要这个.

在将新界面推送到我的多个页面控制器上后,如何关闭它的所有其他页面?.

How can I dismiss all other pages of my several pages controller after pushing a new interface over it?.

Modal 不是一个选项,因为我想在推动这个控制器后更深入.

Modal is not an option as I want to go deeper after pushing this controller.

推荐答案

WatchKit 不支持在基于页面的导航布局中推送界面控制器.从 Xcode beta 4 开始,我知道您不会看到这种奇怪的行为,因为根本不会显示界面.

WatchKit does not support pushing an interface controller in a page-based navigation layout. As of Xcode beta 4, I understand that you won't see this strange behaviour as the interface simply will not be presented.

这篇关于在将新界面推送到其上后,如何消除包含界面控制器的两个页面中不需要的页面?在 Watchkit 上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆