OC for iOS Development-responsive programming reactive COCOA

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.