自动完成搜索

编程入门 行业动态 更新时间:2024-10-26 12:31:14
本文介绍了自动完成搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

到目前为止,我已经搜索了这些问题,似乎大多数自动完成的问题都与控制台有关。

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上实现地址簿自动完成的最佳方式?

更多推荐

自动完成搜索

本文发布于:2023-11-30 00:31:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1648123.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自动完成

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!