Add a generic delegate to a base class in Swift

后端 未结 0 1663
有刺的猬
有刺的猬 2021-01-15 19:20

Ideally, I want to create a BaseViewController class that takes in a protocol type (of a delegate) and have a weak variable as the delegate. Something like this

相关标签:
回答
  • 消灭零回复
提交回复
热议问题