SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
4.
What is ReactiveCocoa
ReactiveCocoa is an open source library that brings
Functional Reactive Programming paradigm to
Objective-C. It was created by Josh Abernathy &
Justin Spahr-Summers in the development of GitHub
for Mac.
18.
RAC dealing with
One of the major advantages of RAC is
that it provides a single, unified approach
to dealing with
!
1. asynchronous behaviors,
2. including delegate methods,
3. callback blocks,
4. target-action mechanisms,
5. notifications,
6. and KVO.
20.
Mattt Thompson :
“ The brave new era for Objective-C “
Justin DeWind :
“ The Future of Cocoa Programming “
http://nshipster.com/reactivecocoa/
http://spin.atomicobject.com/2013/04/28/reactivecocoa/
21.
Terms
• RACSignal vs. RACSequence
• Cold or Hot Signals
22.
RACSignal vs. RACSequence
pull-‐driven push-‐driven
23.
Terms
• RACSignal vs. RACSequence
• Cold or Hot Signals
24.
Cold or Hot Signals
• Hot Signals
• 按鈕事件
• 事件即時通知
!
• Cold Signals
• 網路事件
• 不會⾺馬上有結果