Implementing UITextFieldDelegate with Swift

前端 未结 12 1249
后悔当初
后悔当初 2020-12-08 08:11

I have my ViewController class which implements UITextFieldDelegate. I have no auto complete for the funcs such as textFieldShouldBeginEditing. Is this a bug in XCode 6?

12条回答
  •  暖寄归人
    2020-12-08 08:41

    In my case by mistake I have added the delegate methods outside of the scope of the class implementation in swift and that restricts the delegate methods to be called.

提交回复
热议问题