iOS 5、xcode 4.2、故事板中的主页按钮 [英] A home button in iOS 5, xcode 4.2, Story board
问题描述
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屋!