Delegate methods in child class sometimes not called with Swift 5 compiler

后端 未结 6 1080
野的像风
野的像风 2020-12-24 14:32

EDIT: As sunshinejr pointed out here, this has been fixed and will be released together with the next Xcode/Swift version.


I\'ve seen a lot of

6条回答
  •  臣服心动
    2020-12-24 14:59

    We ran into this with a UITextViewDelegate

    Another workaround is to add the @objc tag to the method in the superclass

提交回复
热议问题