MVC for iOS

Source: Internet
Author: User

Summary: All application procedures are not open to display and interaction. View: Responsible for creating interface elements, interface layout, responsible for receiving external interaction, and notify control processing. Control: is responsible for controlling the actual data of the view element and is responsible for dealing with the actual interactive process of view sending over. Responsible for getting or sending data from model. Model: Saves the data and responds to the control's request. So ==>View:1, there should be a way to initialize the creation element: Initui. 2. All elements can be exposed to control to show actual data. 3 provides an outer-to-interface and executes an interface function, which is actually implemented by control. Protocal:onclickcontrol:1: You should have view. If you can perform the initial method of view first. and get the view. Self.view=xxx ==>getsomecontrol. 2: Implement view interface <pagePortocal> 3 implement some system encapsulated elements interface such as. iOS ' s protocal. Eg:table delegate.model:getlist, Updatesomemode., observe data changes. and send notifications to subscribers. So, any control, just create an instance of the view and implement the interface. Can take over view very well. You can even manage multiple view.The view is independent and does not depend on control.Can actually be generalized to most of the program structure. such as. Web.html is responsible for creating and laying out. and is responsible for post data to the service side processing. The service side handles interactive events. ASP. NET, you can know the elements of any view and display the data. Such as

MVC for iOS

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.