auto complete a search

社会主义新天地 提交于 2019-12-23 05:31:36

问题


I have searched the questions so far, and it seems that most auto complete questions are about the console.

How can we auto complete a search and load it like the image below. I am new to xcode, so if you have instructions on what I need to do to get it to look like this, then I will appreciate it.

Basically I have an empty table cell, when i touch it to edit, a search box should come up (at the top), and as soon as I type a, all the values for a show up below in individual cells. I can select a cell when I see the value, and it will take me back to the original table and input that value into that cell.

What is the structure after i click the initial cell to bring up the search box

Auto complete with cells?

After this, I imagine I store the value of the variable, and assign it to the cell it originated from.

Attached is an image for reference.

Thank you in advance.

PS - The list to auto complete from has a few thousand values.

Thanks!


回答1:


For several thousand entries it's unlikely Core Data will give you good performance. Instead you'll need to load the data as a Directed Acyclic Word Graph (DAWG). See other answers on this for further info.

Directed acyclic graph

Best way to implement address book autocompletion on iPhone?



来源:https://stackoverflow.com/questions/13309948/auto-complete-a-search

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!