Home:ALL Converter>Performing Auto-Complete on UITextField in Swift for iOS

Performing Auto-Complete on UITextField in Swift for iOS

Ask Time:2014-10-22T22:31:18         Author:AlexCon

Json Formatter

I'm totally new to App design for iOS. I am designing an iOS app with Swift. I have a RESTFul service that returns a list of Cities based on a partial string query. My webapp uses Jquery-AutoComplete to perform the operation and it works great, I was wondering how I can achieve the same drop-down list look with Swift.

Here's how I retrieve the data. If the size of UITextField is greater than 3 characters, my App Starts sending the content of the UITextField to my RESTFul Service and get back the list of cities that start with those characters (My service returns the top 10 matches).

My challenge is, how can I show a drop-down under the UITextField just like JQuery-AutoComplete list ?

Author:AlexCon,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/26509972/performing-auto-complete-on-uitextfield-in-swift-for-ios
yy