实现对iPhone地址簿自动完成最佳方式吗? [英] Best way to implement address book autocompletion on iPhone?

查看:183
本文介绍了实现对iPhone地址簿自动完成最佳方式吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道什么是有一个文本框最好(最快,最简单的)的方式
自动完成与iPhone的通讯簿中的联系人信息。

I'm wondering what is the best (fastest and simplest) way to have a textfield auto complete with iPhone's address book contacts information.

请问每次关键是pressed速度不够快,访问地址簿?
或者,我有我自己的本地数据库(CoreData典型值)来加载的一切吗?
另一种方式是在每个应用程序启动加载在内存中的一切。任何经验
关于ADRESS书的访问速度?

Would access the address book each time a key is pressed fast enough ? Or do I have to load everything in my own local database (CoreData typically) ? Another way would be to load everything in memory at each app launch. Any experience regarding the access speed of the adress book ?

补充:我想避免,因为它不仅更加code写的,但你也需要在地址簿被修改同步您的本地副本加载地址簿内容的本地副本。

ADDED: I'd like to avoid having to load a local copy of the address book content because it's not only more code to write but you also need to sync your local copy when address book is modified.

推荐答案

对于由字检索超快速的性格,你需要的方法被称为的向无环字图

For super fast character by character retrieval, the approach you need is called a Directed acyclic word graph.

这篇关于实现对iPhone地址簿自动完成最佳方式吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆