导航控制器问题

发布于 2024-08-31 22:19:45 字数 292 浏览 4 评论 0原文

我想要我点击的视图有多个后退按钮,我以前看过这个教程,但现在我找不到它了,有人可以帮助我吗,

例如我有带有按钮的 view1,在我单击导航控制器后 将推送到 view2 ,然后在导航栏上我们有 view1 (返回) 可以返回 view1 的按钮,在 view2 内我也做了同样的事情 view1 但这次是转到 view3,导航栏上有 一个 view2 (后退)按钮,我想要 view1 和 view2 两个按钮,所以我 选择我想要返回的视图

可以在 view3 导航栏左侧按钮上

<视图1 <视图2

i want multiple back buttons for the view i have click through , i saw this tutorial before, but now i can't find it anymore, can someone help me please

for example i have view1 with button, after i click it the navigation controller
will push to view2 , then on the navigation bar we have view1 (back)
button which can go back to view1, inside view2 i had did the same like
view1 but this time is go to view3, and on the navigation bar instead have
one view2 (back) button, i want to have view1 and view2 both button so i
can choose which view i want to go back to

on view3 navigation bar left button will look this

< view1 < view2

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

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

发布评论

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

评论(1

场罚期间 2024-09-07 22:19:45

抱歉,我没有适合您的解决方案,但我想提一下,用户界面指南特别不鼓励以这种方式实现导航控制器。在 iPhone 世界中,用户习惯于点击导航栏上最左侧的按钮将其带到上一个视图。通过多个后退按钮,点击最左边的按钮可以让用户返回到开头。这可能是此问题尚未得到解答的原因,也可能是应用程序未获批准的原因。

Sorry, I don't have a solution for you, but I wanted to mention that the User Interface Guidelines specifically discourage implementing navigation controllers this way. In the iPhone universe, users are used to tapping the leftmost button on a navigation bar to take them to the previous view. With multiple back buttons, tapping the leftmost button takes the user back to the beginning. This may be a reason why this question hasn't been answered and may be a reason for the app no being approved.

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