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