Unable to use custom class in a protocol with @objc attribute?

后端 未结 4 1823
独厮守ぢ
独厮守ぢ 2021-01-04 11:55

I am trying to create a protocol for JSON loading delegation, JSONLoaderDelegate. My other class, called JSONLoader, is supposed to dispatch events

4条回答
  •  遥遥无期
    2021-01-04 12:28

    What the 3 methods have in common is the JSONLoader parameter, and that's what I think prevents you from bridging the protocol. In order to solve the problem you have to make it objc compatible.

提交回复
热议问题