码迷,mamicode.com
首页 > 其他好文 > 详细

RAC转换传统的通信

时间:2015-07-28 17:58:29      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

1.UI事件

[self.logInButton rac_signalForControlEvents:UIControlEventTouchUpInside]

2.Delegate回调

[self rac_signalForSelector:@selector(flickrAPIRequest:didCompleteWithResponse:) fromProtocol:@protocol(OFFlickrAPIRequestDelegate)];

3.Notificaiton

[NSNotificationCenter.defaultCenter rac_addObserverForName:UserDidLogOutNotification object:nil]

4.KVO观察

[RACObserve(self, username)]

5.Target-Action

[self rac_signalForSelector:@selector(didChangeValueForKey:)]

RAC转换传统的通信

标签:

原文地址:http://www.cnblogs.com/guoxiaoqian/p/4683350.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!