Alex Rivera | Logout

Custom UITextField Autocomplete

Asked 2011-06-26T10:50:38.440
15

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?

Edit
Report

1 Answer

13

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.

answered 2013-01-25T20:17:54.703

Your Answer