Data positive-reverse/multi-level transfer between iOS interfaces

Source: Internet
Author: User
1 Initialize the value of the pass

(Rewrite the Init method, let the back carry the data that needs to be passed in, and then initialize the interface, using this method must be before the initialization of the data is more appropriate)


2 Property pass-through value

(The appropriate interface for attribute value comparison is initialized first, and the data is obtained after the interface initialization, when you want to update the content of the interface elements, it is convenient to get the corresponding elements directly through the property)

3 Method Parameter Passing value

(The method parameter is also good for updating the interface elements, when you want to let the encapsulated TableView refresh request back data, by calling the encapsulated method to pass data to refresh the interface data)

4 protocol Transmit Value

(more suitable for two interface direct reverse value __> is similar to the implementation of the system proxy method, when a well-packaged class, define a own proxy, when the class triggers an event that requires data to be sent out, the protocol defines a method, When an instance that follows this protocol calls this method, it can access the parameters that are carried later)


5 Block Transmit Value


6 single-Case pass value

(Use a single case to store user information in general, convenient for data access or other data at any time)

7 Notification Pass Value

(When a multi-layered page is required for data transmission, it is more convenient to register the notification to implement)

8 extern Global Variables


9 Data storage

(Data persistence write sandbox)

Data positive-reverse/multi-level transfer between iOS interfaces

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.