iphone; uisearchbar asynchronous requests, cancelling before sending a new one
问题 Hi there guys I am looking to have a search bar in my application,where the user searches for cities and countries - the results come from an online API. So, when the user starts to type more than four characters, a search request is sent to the online API and country,city information is fetched. The problem here is; as the user is typing the calls are made, but any call before that has not ended yet - causing the application to feel sluggish... To reiterate The user types, lets' say "Sing" A