Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
RAC用クラス拡張の作り方
Search
Kenichi Yonekawa
July 28, 2014
Programming
2
2.9k
RAC用クラス拡張の作り方
ReactiveCocoa関西 LT
Kenichi Yonekawa
July 28, 2014
Tweet
Share
More Decks by Kenichi Yonekawa
See All by Kenichi Yonekawa
iOSアプリの設計とDependency Injection
yonekawa
22
16k
Fluxで複雑な状態の変化を予測可能にするiOSアプリ開発
yonekawa
9
19k
ネイティブアプリでもFluxしたい
yonekawa
0
2.1k
freeeモバイルチームの変遷と進化
yonekawa
0
7.4k
ReactiveCocoa Pitfalls at freee
yonekawa
2
830
Dive into Joybox
yonekawa
5
1.7k
Other Decks in Programming
See All in Programming
CSC509 Lecture 13
javiergs
PRO
0
110
NSOutlineView何もわからん:( 前編 / I Don't Understand About NSOutlineView :( Pt. 1
usagimaru
0
340
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
250
CSC509 Lecture 09
javiergs
PRO
0
140
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
2
350
Contemporary Test Cases
maaretp
0
140
Micro Frontends Unmasked Opportunities, Challenges, Alternatives
manfredsteyer
PRO
0
110
OSSで起業してもうすぐ10年 / Open Source Conference 2024 Shimane
furukawayasuto
0
110
Amazon Qを使ってIaCを触ろう!
maruto
0
410
광고 소재 심사 과정에 AI를 도입하여 광고 서비스 생산성 향상시키기
kakao
PRO
0
170
Flutterを言い訳にしない!アプリの使い心地改善テクニック5選🔥
kno3a87
1
200
as(型アサーション)を書く前にできること
marokanatani
10
2.7k
Featured
See All Featured
Embracing the Ebb and Flow
colly
84
4.5k
It's Worth the Effort
3n
183
27k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
130
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Facilitating Awesome Meetings
lara
50
6.1k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.8k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Transcript
! RAC༻Ϋϥε֦ுͷ࡞Γํ @yonekawa
None
None
ษڧձͱ͔Ͱ͖Δ͍εϖʔε ͋Γ·͢
ؔ౦։࠵ΑΖ͘͠! ͓ئ͍͠·͢ʂʂ
ReactiveCocoaͷ ͍͍ͱ͜Ζ
FRPͱ͔MVVMͱ͔ ͪΖΜ͚ͩͲ
• [textField rac_textSignal] • [alertView rac_buttonClickedSignal] • [tableViewCell rac_prepareForReuseSignal] •
[imagePicker rac_imageSelectedSignal] • [object rac_liftSelector:withSignals:]
ΈࠐΈΫϥε͚ͷ ֦ு͕ॆ࣮ͯ͠Δ
αʔυύʔςΟϥΠϒϥϦͱ͔ ࣗ࡞ΫϥεͲ͏͢Δʁ
None
ΧςΰϦ࡞Ε͍͍Α
࣮ࡍʹ৭ʑ࡞ͬͯΈͨ
[SVProgressHUD rac_dismiss] SVProgressHUD͕dismiss͞ΕͨΒ(fade animation͕ ऴΘͬͨΒ)ൃՐ͢ΔRACSignalΛฦ͢
• NSNotificationCenterͷ rac_addObserverForNameͰNotification͕ ඈΜͩ࣌ͷRACSignalΛ࡞ • ͦͷsignalΛsubscribeNextͨ͠blockͷதͰ Γ༻ͷsubjectΛsendComplete͠ɺsignal Λdispose͢Δ
[NJKWebViewProgress rac_updateSignal] NJKWebViewProgressDelegateͷ webViewProgress:updateProgress:͕ݺͼग़͞ΕΔ ʹൃՐ͢ΔRACSignalΛฦ͢
RACDelegateProxy • initWithProtocolͰࢦఆͨ͠Protocolʹ४ڌ ͨ͠ProxyΦϒδΣΫτΛ࡞ • ProxyΦϒδΣΫτͷsignalForSelectorͰ selector͕ݺΕͨ࣌ʹൃՐ͢ΔRACSignalΛ ฦͯ͘͠ΕΔ
[UIButton rac_16shotSignal] 1ඵؒʹ16ճϘλϯΛ࿈ଧ͢ΔͱൃՐ͢ΔRACSignalΛฦ͢
https://github.com/ yonekawa/ RACSupportExamples