iOS 5中的主页按钮,xcode 4.2,故事板 [英] A home button in iOS 5, xcode 4.2, Story board

查看:105
本文介绍了iOS 5中的主页按钮,xcode 4.2,故事板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iOS 5.0,xCode 4.2

iOS 5.0, xCode 4.2

我正在做一个多步调查问卷。

I am doing a multistep questionnaire.

大约有10个问题在每个分支上,还有子分支。
但逻辑是相当线性的。大多数是/否答案,但有一些多项选择。
问卷将在结论页面上显示。

There are about 10 questions on each branch, and there are sub branches. But the logic is fairly linear. Mostly Yes/no answers, but some multi choice options. The questionnaire will come to a conclusion page.

在这个结论页面上,我想有一个按钮,上面写着HOME
用户到特定的起始页面,以便他们可以重新开始。

On this conclusion page, I would like to have a button that says HOME which takes the user to a specific start page so they can start again.

问题是我想要清除导航控制器堆栈,以便后退按钮不会循环过去选择。

The problem is that I want the navigation controller stack to be cleared so the back buttons will not loop through the past selections.

换句话说,我想清除导航堆栈上的所有视图控制器。有一种简单的方法吗?

Put another way, I want to clear out all of the view controllers on the navigation stack. Is there a simple way to do this?

推荐答案

popToRootViewControllerAnimated: on UINavigationController将清除堆栈并返回根控制器。

popToRootViewControllerAnimated: on UINavigationController will clear out the stack and return you to the root controller.

这篇关于iOS 5中的主页按钮,xcode 4.2,故事板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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