Swift 2.0 Method cannot be marked @objc because the type of the parameter cannot be represented in Objective-C

后端 未结 3 996
夕颜
夕颜 2020-12-09 15:14

After I have updated Swift 1 to Swift 2.0 I have an issue.

I am getting the following error on the first line of this code:

Method cannot be m

3条回答
  •  再見小時候
    2020-12-09 15:52

    With this less informations I can only try to suggest you to put this before Person declaration.

    @objc(Person)
    class Person {
    ...
    }
    

提交回复
热议问题