IOS talking about MVC design pattern and the method of controllers

Source: Internet
Author: User

1. Describe your understanding of MVC?


MVC is an architectural design. It considers three objects: Model (object), View (Attempt object), controller (trying to control)


(1) Model: Responsible for storing, defining and manipulating data


(2) View: Used to display data to users and users to interact with the operation

(3) The controller is the coordinator of M and V, the controller obtains the data and gives the data to the view to show



2. What are some of the ways to describe the value of controllers in a simple description?


(1) Attribute passing value


(2) Block transfer value


(3) Proxy value


(4) Single-case pass-through value


(5) Notification value: Who wants to monitor is worth the change. Who will register notice



3. How do I understand the sandbox mechanism in iOS?


The sandbox mechanism (sanbox) in iOS is a security system that specifies that an application can only read text within a directory created for that application.

, do not access the contents of other places, all non-code files are stored in this place. Analogy: Picture. Sound, text, attribute columns

Table.


(1) Each application is in its own sandbox


(2) You cannot cross your own sandbox to visit other applications in sandbox content


(3) The application requests or accepts data to be authenticated by permission



How to implement multiple inheritance in 4.OC with no multiple inheritance

(1) No multiple inheritance.


(2) All classes in cocoa are subclasses of NSObject, many of which are implemented by PROTOCL entrusted agents.


(3) The object-oriented language is a large part of single inheritance, such as: Java, C #


(4) C + + is to support multiple inheritance


IOS talking about MVC design pattern and the method of controllers

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.