[ios development] The third week of learning content and the operation of proxy transfer

1. App page display
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here

Insert picture description here
2. The knowledge points learned this week.
The use of attribute transfer and protocol transfer is the key to this week.
Attribute transfer : the most commonly used method of value transfer

1. Write the attribute in the second page .h file (set the value attribute)
2. Just in the method of creating the second page controller on the first page, perform the assignment operation
3. Applicability (limitations): Only applies to the first page to pass the value to the next page

Proxy transfer
operation process
1. In the second-level controller .h file, set the informal protocol
2. Write attributes in the second-level controller .h file
3. In the second-level controller .m file, use Agent attribute, to call the method in the protocol (pass the parameters at the same time)
4. Follow the protocol
in the first-level controller 5. Set the agent
in the first-level controller 6. Rewrite the agent in the first-level controller method

Examples of this application:
Insert picture description here
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/m0_46110288/article/details/107753732