IOS AutoFill Feature

What most people mean by autocomplete is that the application has a text / search bar / everything that accepts user input. This component includes a table that is constantly updated based on user input. This is a well-studied topic and is now relatively easy to implement thanks to the UISearchDisplay controller.

Now here is what I want. When the user enters any text into the UISearchBar, there will be no searchdisplay dispatcher. Instead, I want the application to do something like Google Instant on desktop computers. That is, if I type "Goog", the search bar should show Goog * le. Therefore, the sentence "le" should be a lighter font than the rest of the Google user input line. Therefore, I do not want to use the automatic suggestion function, I want the autocomplete function.

Any ideas on how I can do this?

Thanks!

+7
source share
2 answers

I have not tried, but here is a control that seems to do what you are asking for:

http://cocoacontrols.com/platforms/ios/controls/doautocompletetextfield

+2
source

Alternatively, you can use this subclass of UITextField (inspired by DOAutocompleteTextField):

https://github.com/hoteltonight/HTAutocompleteTextField

He received several more functions and is actively developing. This example shows how to use an array as a data source for auto-recorded text.

+6
source

All Articles