iphone - How to best use UISearchBar to search using API call, iOS -
i have huge list of elements, , 50 shown in table view through api paging. there search bar table view. when searches using search bar, need use search api. there way make normal search experience search through table view elements per key press.
in case want search work api call, can follow concept of reloading data after every few characters typed (example : every 3 characters typed) in textdidchange method of uisearchbar.
alternatively data can reloaded when user stops typing. refer link in order follow approach.
by reloading, mean method perform stuff want after user stops typing.
Comments
Post a Comment