Pause Technique

Create protocol and implement delegation in Swift

First of all, start by creating a new Swift file and name it something like HLRequestDelegate ; that will define your protocol.

To call your delegate, you may now create a new class instance and call methods defined in previous Swift file…. Lire la suite