apasccon / SearchTextField

UITextField subclass with autocompletion suggestions list
MIT License
1.15k stars 253 forks source link

how to detecting that user is typing? #161

Closed abrahamkj closed 5 years ago

abrahamkj commented 5 years ago

I got the answer. We can use textFieldDidChange()

JHHMobile commented 5 years ago

Can you share how to implement that method? Thanks

abrahamkj commented 5 years ago

textfield.addTarget(self, action: #selector(functionname), for: .editingChanged)

func functionname() { }

voldzi commented 4 years ago

Ads selector doesn't work as self.text = filteredResults[(indexPath as NSIndexPath).row].title doesn't fired event "editingChanged" (line 600) Solution is to add line below mentioned line: self.sendActions(for: .editingChanged) ...it will be nice to add it to master...