I try to use search controller on my tableview on this link. If user pause typing on the searchbar for 0.3 sec then it will fire fetch method.
I know how to fire method on every change in search bar using updateSearchResultsForSearchController
, but it wasn't I want. Then I use search bar delegate searchBarSearchButtonClicked
, but it fired only when search button on keyboard was pressed.
What I want is fire a method like when user stop typing for 0.3 sec. Is there any way to do this? Or am I going wrong with the concept of using search controller + fetch data?
Any help would be appreciated.