IOS Storyboard中使用Segue传值
来源:互联网 发布:中国广告服务贸易数据 编辑:程序博客网 时间:2024/06/13 01:23
IOS Storyboard中使用Segue传值
需求描述:
故事板中,VIEW1与VIEW2有一条SEGUE连线。点击VIEW1中的按钮跳转至VIEW2,并且从VIEW1中传递值给VIEW2。
实现:
VIEW1.m
添加下面的事件方法,该方法在视图跳转时被触发。
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
}
VIEW2.h
定义一个属性来接受SEGUE传递过来的值:
@property(nonatomic,weak)NSString *strTtile;
VIEW2.m
@synthesize strTtile;
......
- (void)viewDidLoad
{
}
0 0
- IOS Storyboard中使用Segue传值
- IOS Storyboard中使用Segue传值
- IOS Storyboard中使用Segue传值
- iOS中storyboard故事板使用Segue跳转界面、传值
- iOS中storyboard故事板使用Segue跳转界面、传值
- iOS中storyboard故事板使用Segue跳转界面、传值
- ios-Storyboard Segue
- StoryBoard segue 使用步骤
- iOS中使用storyboard实现页面跳转,Segue详解及简单的数据传递
- IOS中Segue的使用
- iOS 一一 storyBoard中segue实现页面跳转
- ios-storyboard-利用segue传参
- storyboard中使用segue给navigationBar设置标题
- StoryBoard中使用Segue实现ViewController之间传值
- Storyboard-segue的使用
- iOS StoryBoard的转场Segue解读
- 使用StoryBoard:用Segue传递数据
- StoryBoard 使用segue页面间传递数据
- 剑指offer面试题16-反转链表
- Java I/O 操作及优化建议
- 第十一章 字符串和字符函数
- java基础-多线程
- 第3组UI(1)-AdapterView之ListView及MVC设计模式
- IOS Storyboard中使用Segue传值
- 使用gcc的-finstrument-functions选项进行函数跟踪
- visual stdio 2015下调试c++程序一闪而过决解办法
- 150. Evaluate Reverse Polish Notation
- JVM 垃圾回收器工作原理及使用实例介绍
- java的instanceof关键字
- KEIL下分散加载文件的使用
- 分析函数调用关系图(call graph)的几种方法
- 慢慢说CSS第一天