您的位置:首页 > 产品设计 > UI/UE

使用Segue在两个UIViewController之间建立联系-NavigationController

2015-11-11 23:38 483 查看
先建立两个不同的UIViewCOntroller

Editor--Embed in---Navigation Controller

NavigationController被嵌入左边那个MainViewController里去了。

那么MainViewController 与另外一个ViewController之间如何建立Segue?

在Main.storyborad里。要想MainViewController中的“登陆”按钮激发LogiinViewController的跳转。

按住ctrl键,然后吧把“登陆按钮”,拖拽到LogiinViewController中

segue已经生成

--

模拟器run 如下

点击登陆按钮。

点击“Back”按钮可以返回。成功!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: