I have implemented a AutoSuggest API (Similar to Google Search). API gives list of suggestion for character typed in search bar. Eg: While typing on Google search, it show list of suggestion on bottom of search bar.
Any good approach or design pattern we can use for calling this API on each char type.
Current implementation is : 1. char type on search bar 2. create an NSURLRequest and pass it to NSURLConnection object 3. Parse response and show suggestion. 4. Again char type just Cancel the NSURLConnection before generate a request and passing to NSURLConnection.
My concern is what could be the good approach for implementing this.
Thanks in Advance. Regards, Ruyam