到目前为止,我已经搜索了这些问题,似乎大多数自动完成的问题都与控制台有关。
I have searched the questions so far, and it seems that most auto complete questions are about the console.
我们如何自动完成搜索并加载它,如下图所示。我是xcode的新手,所以如果你有关于我需要做什么的说明来让它看起来像这样,那么我会很感激。
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.
基本上我有一个空表格单元格,当我触摸它进行编辑时,应该会出现一个搜索框(在顶部),并且一旦我键入a,所有值将显示在单个单元格中。当我看到这个值时,我可以选择一个单元格,它会将我带回原始表并将该值输入到该单元格中。
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
自动完成单元格?
此后,我想象我存储变量的值,并将其分配给它来自的单元格。
After this, I imagine I store the value of the variable, and assign it to the cell it originated from.
附图是供参考的图像。
提前谢谢。
PS - 自动完成的列表有几千个值。
PS - The list to auto complete from has a few thousand values.
谢谢!
推荐答案对于数千个条目,Core Data不太可能为您提供良好的性能。相反,您需要将数据作为定向非循环字图(DAWG)加载。有关详细信息,请参阅此处的其他答案。
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.
定向非循环图
在iPhone上实现地址簿自动完成的最佳方式?
更多推荐
自动完成搜索
发布评论