First, reactive COCOA introduction
Reactive Cocoais a "framework for IOS development " 重量级"
- The concept of being tall: responsive programming
- Core concept:
信号 Signal
- Official website: Https://github.com/ReactiveCocoa/ReactiveCocoa
second, related concepts
1> -Responsive programming
For a chestnut, in general program development
a = b + c,
After the assignment b or after c the value changes, a the value does not change,
If used 响应式编程 , the goal is that if b or when c the value changes, a the value will change at the same time.
Thinking: How can we respond in a timely manner? ------> to b c observe, when changes occur, timely notification of a changes-----> Agents, notifications, blocks can be
The core idea of 2> RAC
- So-called
响应 , that is what 事件 happens after making响应
-
The events in IOS development include:
- Target
- Delegate
- KVO
- Notice
- Clock
- Network asynchronous callbacks
-
And ReactiveCocoa , that's to 信号 take over all the events in IOS
OC for iOS Development-responsive programming reactive COCOA