简体   繁体   中英

What is the use of "didSet","get","set" in Swift protocol?

在调用协议或委托期间我应该在哪里使用 set 或 get 方法

Set 和 Get 用于设置和获取属性的任何值,而不是协议。委托用于接收来自另一个控制器的回调。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM