Swift protocols: method does not override any method from its superclass

前端 未结 1 1941
栀梦
栀梦 2020-12-01 07:28

Since Xcode 6 still has a lots of bugs with Swift, I\'m not sure is it one or I\'m missing something. My class adopts protocol NSLayoutManagerDelegate. But it seems impossib

相关标签:
1条回答
  • 2020-12-01 07:54

    You're implementing a method from the protocol, yes, but it's not an override. Just remove the override keyword. An override is when your superclass also implements that method and you're providing a version that replaces or modifies the behavior of the superclass implementation. That's not what's happening here.

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