Tag: delegates

57 votes
19 answers
2.3K views
How do I create delegates in Objective-C?

I know how delegates work, and I know how I can use them. But how do I create them?

avatar
Forrest
0 1 0 9
asked 07 September, 2021
53 votes
7 answers
1.9K views
How can I make a weak protocol reference in 'pure' Swift (without @objc)

weak references don't seem to work in Swift unless a protocol is declared as @objc, which I don't wa

avatar
Venice
0 1 0 9
asked 07 September, 2021