简体   繁体   English

故事板:第三个场景到NavigationController中的第一个场景

[英]Storyboard: Third scene to First scene inside NavigationController

I have three scenes embedded inside a Navigation Controller. 我在导航控制器中嵌入了三个场景。

Scene1: Takes input from user, validates it to be > 0 and enables a button which pushes into Scene 2 using push segue. Scene1:从用户那里获取输入,将其验证为> 0并启用一个按钮,该按钮使用push segue进入场景2。

Scene2: Depends on the value (say 'n') in the first scene,user has to move few sliders 'n' times by using a 'next' UIButton. 场景2:取决于第一个场景中的值(比如'n'),用户必须使用'下一个'UIButton来移动几个滑块'n'次。 When counter reaches n, another UIButton 'submit' is enabled for the user to push into Scene 3 using push segue. 当计数器达到n时,另一个UIButton'submit'被启用,用户可以使用push segue进入场景3。

Scene3: Shows the values of scene 2. Has a button "Start over" which pushes into scene 1 using push segue. 场景3:显示场景2的值。有一个“重新开始”按钮,使用push segue推入场景1。

However, now when I'm in scene 1, there is back button from which user can go back to scene 3. How to prevent this from happening? 但是,现在当我在场景1中时,有一个后退按钮,用户可以返回到场景3.如何防止这种情况发生?

Cheers. 干杯。

而不是按下第一个控制器,“重新开始”按钮应弹出到第一个控制器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM