Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom UITextField Autocomplete [duplicate]

Tags:

ios

iphone

I want to implement a custom autocomplete functionality in a UITextField that will use the values provided by me, not the iPhone dictionary. Does any one knows how to do it or could point me to some resources?

like image 203
atiq Avatar asked Jun 26 '11 10:06

atiq


2 Answers

You can use this UITextField subclass:

https://github.com/hoteltonight/HTAutocompleteTextField

The example shows you how to use an array as the data source for the autosuggest text. The suggested text appears "ghosted", like you see in the address bar in a browser, as opposed to the speech bubble that iOS uses to autocomplete/suggest.

like image 65
codeperson Avatar answered Oct 01 '22 20:10

codeperson


Here's Another alternative. Fully customizable and configurable.

like image 25
illegal-immigrant Avatar answered Oct 01 '22 21:10

illegal-immigrant