简体   繁体   English

IOS在视图之间切换

[英]IOS Switch between views

I have ios project with storyboard. 我有故事板的ios项目。 There are 4 views in storyboard. 故事板中有4个视图。 The first view that come after navigation controller is "Login View". 导航控制器之后的第一个视图是“登录视图”。 In all other views there is a Logout button. 在所有其他视图中,有一个Logout按钮。 When you click the button I want the application show the Login View. 当您单击我想要的按钮时,应用程序将显示登录视图。 But I could not find how to do this. 但我找不到如何做到这一点。

Please can you show me the code how to do that? 请问您能告诉我代码怎么做?

Thanks! 谢谢!

This tutorial shows you how to go back and forth between 2 different views in storyboard, you should be able to apply it to your problem. 本教程将向您展示如何在故事板中的两个不同视图之间来回切换,您应该能够将其应用于您的问题。

http://howtomakeiphoneapps.com/using-storyboards-to-create-a-single-view-application/1363/ http://howtomakeiphoneapps.com/using-storyboards-to-create-a-single-view-application/1363/

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

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