I am creating an application where I need to implement autocomplete when the user enters text input, with the 10 closest / highest ranking words appearing under the text box.
I was given a fairly large list of approximately 80,000 words and their corresponding "priority" - a number that determines how high they appear in autocomplete depending on the size of the number, for example:
"transport international";19205 "taxi";18462 "location de voitures";18160 "police";18126 "formation";17858
I am new to iOS development and wondered how best to do this - should I split 80,000 phrases into smaller files or just save them in one? What will be faster?
I saw the autocomplete used in the example for iOS, but it was for a very small number of sentences - I did not see it done using the file that was so big before, and obviously I would like to do it as quickly as possible for additional user convenience.
Any suggestions regarding examples, tutorials or code suggestions would be greatly appreciated, thanks.
source share