How to override a superclass' property with more specific types?

后端 未结 2 1839
旧巷少年郎
旧巷少年郎 2020-12-30 22:14

The Scenario
I have a situation where a base class called AbstractRequest has a delegate property of type id

相关标签:
2条回答
  • 2020-12-30 22:29

    The warning already gave the right clue. I used @dynamic in the overriding subclass and all is good.

    0 讨论(0)
  • 2020-12-30 22:50

    Just synthesize id<ConcreteRequestDelegate>delegate in the ConcreteRequest.m it will work fine...It won't create any problem.

    0 讨论(0)
提交回复
热议问题