IOS SDK 4.3 Study Notes iPhone101 (04)

Source: Internet
Author: User

Understanding about Connection

 

The development in iOS SDK is similar to the Dialog Based Application development in Windows. It is to drag some page elements to the window and then write the corresponding code. However, why is no Connection established in Windows? Is it because Windows does not need to be created? Obviously not. If the page element is not associated with the application, it cannot complete any valid operations. The answer is that Connection in Windows is created by Visual Studio. In this case, why can't Xcode be set up for us? My understanding is to understand the root node.

 

In the MVC mode, it is easier to decouple M and VC. (If M only refers to the Data Model .) However, it is difficult to decouple V and C. Because V requires C to control, the coupling between them is usually quite tight. As in Windows, V and C are basically inseparable. Xcode uses the Connection method to solve this problem. In this way, the same V can have multiple different C, and different C can be used to control the V under different circumstances. This also avoids the excessive use of inheritance to control C, as in Windows. In many designs, do not use inheritance as much as possible.

 

From pingjiang2003's column

Related Article

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.