The concept of iOS programming ideas

Source: Internet
Author: User

iOS several major programming ideas

Object oriented thought: All things are objects, the process of doing one thing turns into the process of object handling event.

Chained programming idea: to pass multiple operations through a point (.) Linking together becomes a code that makes the code read better. For example P.add (1). Add (2). The special place is that each method returns a block, the return value of the block is the object itself, the block parameters need to consider the actual situation. Here's a bit more about why add is followed by parentheses and parameters. This is actually called the block (The block's call is the parentheses, which add parameters). Its representative of the most famous third-party framework is masonry. Don't know can go to see, here do not post code.

Responsive programming Idea: no need to consider the order of calls, just need to know the results. Producing an event that affects a lot of things, these events spread like a stream, then function, and finally produce results. In the object-oriented word, everything is a stream. Its representative is KVO.

Functional Programming Idea: functions call other functions as parameters. Its representative is REACTIVECOCOA.

The concept of iOS programming ideas

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.