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
3k
2
Share
RAC用クラス拡張の作り方
ReactiveCocoa関西 LT
Kenichi Yonekawa
July 28, 2014
More Decks by Kenichi Yonekawa
See All by Kenichi Yonekawa
iOSアプリの設計とDependency Injection
yonekawa
22
19k
Fluxで複雑な状態の変化を予測可能にするiOSアプリ開発
yonekawa
9
42k
ネイティブアプリでもFluxしたい
yonekawa
0
2.3k
freeeモバイルチームの変遷と進化
yonekawa
0
9.4k
ReactiveCocoa Pitfalls at freee
yonekawa
2
880
Dive into Joybox
yonekawa
5
1.8k
Other Decks in Programming
See All in Programming
YJITとZJITにはイカなる違いがあるのか?
nakiym
0
160
Vibe NLP for Applied NLP
inesmontani
PRO
0
130
Going Multiplatform with Your Android App (Android Makers 2026)
zsmb
2
360
iOS機能開発のAI環境と起きた変化
ryunakayama
0
170
PDI: Como Alavancar Sua Carreira e Seu Negócio
marcelgsantos
0
110
CursorとClaudeCodeとCodexとOpenCodeを実際に比較してみた
terisuke
0
220
Java 21/25 Virtual Threads 소개
debop
0
340
今からFlash開発できるわけないじゃん、ムリムリ! (※ムリじゃなかった!?)
arkw
0
190
Radical Imagining - LIFT 2025-2027 Policy Agenda
lift1998
0
250
Mastering Event Sourcing: Your Parents Holidayed in Yugoslavia
super_marek
0
150
KagglerがMixSeekを触ってみた
morim
0
370
L’IA au service des devs : Anatomie d'un assistant de Code Review
toham
0
220
Featured
See All Featured
How to Think Like a Performance Engineer
csswizardry
28
2.5k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
510
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
880
Mind Mapping
helmedeiros
PRO
1
150
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
140
Leo the Paperboy
mayatellez
7
1.6k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
170
My Coaching Mixtape
mlcsv
0
96
From π to Pie charts
rasagy
0
160
Everyday Curiosity
cassininazir
0
190
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