How do I check when a UITextField changes?

后端 未结 19 2958
情话喂你
情话喂你 2020-11-22 15:44

I am trying to check when a text field changes, equivalent too the function used for textView - textViewDidChange so far I have done this:

  fu         


        
19条回答
  •  北海茫月
    2020-11-22 16:17

    There's now a UITextField delegate method available on iOS13+

    optional func textFieldDidChangeSelection(_ textField: UITextField)
    

提交回复
热议问题