Where should I use set or get method during calling Protocol or Delegate
Asked
Active
Viewed 1,188 times
-3
-
Possible duplicate of [swift willSet didSet and get set methods in a property](http://stackoverflow.com/questions/25398753/swift-willset-didset-and-get-set-methods-in-a-property) – James Apr 29 '16 at 16:25
-
2`didSet` is not used in protocol declarations. Everything else is described in [Swift Language Guide:Protocols](https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Protocols.html) – vadian Apr 29 '16 at 16:26
1 Answers
0
Set and Get are for setting and getting any value to and from properties and not for protocols.Delegation is used to receive a call back from another controller.

ankit
- 3,537
- 1
- 16
- 32