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

后端 未结 4 1796
独厮守ぢ
独厮守ぢ 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:15

    JSONLoaderError.LoadError
    

    Is this an enum type? You cannot convert Swift enums to Obj-C code. You'll need to use an int instead.

提交回复
热议问题