cocoa - Swift protocols: method does not override any method from its superclass -
cocoa - Swift protocols: method does not override any method from its superclass -
since xcode 6 still has lots of bugs swift, i'm not sure 1 or i'm missing something. class adopts protocol nslayoutmanagerdelegate. seems impossible override method need. documentation describes:
override func layoutmanager(_ alayoutmanager: nslayoutmanager!, didcompletelayoutfortextcontainer atextcontainer: nstextcontainer!, atend flag: bool) { } but error here: method not override method superclass. should do?
you're implementing method protocol, yes, it's not override. remove override keyword. override when superclass implements method , you're providing version replaces or modifies behavior of superclass implementation. that's not what's happening here.
cocoa swift nslayoutmanager
Comments
Post a Comment