摘要:
/** * 单例传值 对象且初始化一次,页面之间相隔很多依旧可传值 */ #import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window; @end #import "AppDelegate.h" #import "RootViewController.... 阅读全文
随笔分类 - 页面之间的传值
代理传值
2016-04-22 16:33 by 甘雨路, 252 阅读, 收藏,
摘要:
/** * 代理传值 如果是多处传值,则代理传值比block方便 */ #import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window; @end #import "AppDelegate.h" #import "RootViewController.h"... 阅读全文
通知传值
2016-04-22 15:36 by 甘雨路, 168 阅读, 收藏,
摘要:
#import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window; @end /** * 通知在一对多的时候使用,从性能考虑一对一时不建议使用 */ #import "AppDelegate.h" #import "RootViewController.h"... 阅读全文
属性传值
2016-04-22 14:41 by 甘雨路, 243 阅读, 收藏,
摘要:
#import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window; @end #import "AppDelegate.h" #import "RootViewController.h" @interface AppDelegate () @end @impl... 阅读全文
iOS block在两个页面间的简单传值
2015-12-01 14:49 by 甘雨路, 198 阅读, 收藏,
摘要:
#import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window; @end #import "AppDelegate.h" #import "RootViewController.h" @interface AppDelegate () @end @impl... 阅读全文
浙公网安备 33010602011771号