StoryBoard segue 使用步骤
2015-06-27 21:25
555 查看
StoryBoard segue 使用步骤
来源 Storyboards tutorials in iOS7
http://www.raywenderlich.com/50308/storyboards-tutorial-in-ios-7-part-1 http://www.raywenderlich.com/50308/storyboards-tutorial-in-ios-7-part-2
Here’s a handy checklist for setting up the connections between two scenes:
Create a segue from a button or other control on the source scene to the destination scene. (If you’re presenting the new screen modally, then often the destination will be a Navigation Controller.)
Give the segue a unique Identifier. (It only has to be unique in the source scene; different scenes can use the same identifier.)
Create a delegate protocol for the destination scene.
Call the delegate methods from the Cancel and Done buttons, and at any other point your destination scene needs to communicate with the source scene.
Make the source scene implement the delegate protocol. It should dismiss the destination view controller when Cancel or Done is pressed.
Implement
controller and do
来源 Storyboards tutorials in iOS7
http://www.raywenderlich.com/50308/storyboards-tutorial-in-ios-7-part-1 http://www.raywenderlich.com/50308/storyboards-tutorial-in-ios-7-part-2
Here’s a handy checklist for setting up the connections between two scenes:
Create a segue from a button or other control on the source scene to the destination scene. (If you’re presenting the new screen modally, then often the destination will be a Navigation Controller.)
Give the segue a unique Identifier. (It only has to be unique in the source scene; different scenes can use the same identifier.)
Create a delegate protocol for the destination scene.
Call the delegate methods from the Cancel and Done buttons, and at any other point your destination scene needs to communicate with the source scene.
Make the source scene implement the delegate protocol. It should dismiss the destination view controller when Cancel or Done is pressed.
Implement
prepareForSegue: in the source view
controller and do
destination.delegate = self;.
相关文章推荐
- iOS开发——CoreBluetooth蓝牙开发(二)
- 02-线性结构4. Pop Sequence(25)
- 关于EasyUI Json格式不匹配的问题
- UIResponder详解
- DevExpress.Build.targets
- DevExpress.Build
- iOS 开发——CoreBluetooth蓝牙开发(一)
- 反病毒工具-Wsyscheck,Xuetr,PowerTool
- arduino servo的用法
- WEB-INFO/lib & build path 的jar包问题
- UIDynamic的使用
- UITableView的全部属性、方法以及代理方法执行顺序,看过之后肯定有收获---董鑫
- 设置UITabBarItem和UIBarButtonItem字体颜色
- Arduino串口的一些高级用法
- 获取UITableView每行中不同的UITextField输入的内容(例如修改登陆密码)
- Codeforces Beta Round #75 (Div. 1 Only) B. Queue 线段树+二分
- CSS3系列四(Media Queries移动设备样式)
- setContentView剖析
- UILabel属性使用
- Android UI 之 ProgressBar、ProgressDialog、AlertDialog