使用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”按钮可以返回。成功!
Editor--Embed in---Navigation Controller
NavigationController被嵌入左边那个MainViewController里去了。
那么MainViewController 与另外一个ViewController之间如何建立Segue?
在Main.storyborad里。要想MainViewController中的“登陆”按钮激发LogiinViewController的跳转。
按住ctrl键,然后吧把“登陆按钮”,拖拽到LogiinViewController中
segue已经生成
--
模拟器run 如下
点击登陆按钮。
点击“Back”按钮可以返回。成功!
相关文章推荐
- 爬爬爬之路:UI(二) UITextField UIButton 程序生命周期简介
- mysql 连接url中useUnicode=true&characterEncoding=UTF-8 的作用
- 我的iOS学习历程 - UITextField UIButton
- 我的iOS学习历程 - UITextField UIButton
- Quick小白书系列(四)Quick中的Scene
- 学习笔记-七burpsuite的使用
- [TwistedFate]UIButton 应用启动流程
- [TwistedFate]UITextField
- LeetCode Range Sum Query - Immutable
- IOS UIProgressView
- 系统自带的UIBarButtonSystemItem样式
- Spark RDD中Transformation的mapValues、subtract、sample、takeSample详解
- ps2015安装guideguide参考线辅助工具
- apue《UNIX环境高级编程第三版》第二章答案详解
- Leetcode153: Permutation Sequence
- NGUI ScrollView让Item居中显示.
- UI第二天:第⼆讲:基础视图、程序启动流程
- solr facet查询及solrj 读取facet数据【facet.prefix应用:搜索引擎拼写提示(也可用suggest);Solr 默认 requestHandler已包含 Facet 组件】
- EASYUI 树形菜单 fastjson JAVA嵌套对象转JSON
- requests的content与text导致lxml的解析问题