apasccon/SearchTextField

how to detecting that user is typing?

abrahamkj opened this issue · 4 comments

how to detecting that user is typing?

I got the answer. We can use textFieldDidChange()

Can you share how to implement that method? Thanks

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

func functionname()
{
}

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...