title: Implementing Autocomplete in iOS
body: <p>I am creating an application where I need to implement autocompletion when a user is typing into an text input, with the 10 nearest/highest ranking words appearing below the text field.</p>
  
  <p>I've been given <strong>a fairly big list of around 80,000 words and their respective 'priority'</strong> - a number which determines how high up they appear in the autocomplete depending on the size of the number, like this:</p>
  
  <pre><code>"transport international";19205
  "taxi";18462
  "location de voitures";18160
  "police";18126
  "formation";17858
  </code></pre>
  
  <p>I am kinda new to iOS development and was wondering what is the best way to do this - should I split the 80,000 phrases into smaller files, or just keep it in one? What would be faster?</p>
  
  <p>I have seen autocompletion used in an example for iOS but it was for a very small amount of suggestions - I haven't seen it done using a file this large before, and obviously I would like to make it as fast as possible for added user experience.</p>
  
  <p>Any suggestions as to examples, tutorials or code suggestions would be greatly appreciated, thanks. </p>