在iPhone SMS应用程序中实现添加联系人 [英] Implement add contact as in iPhone SMS app
问题描述
我想构建添加用户"功能,因为它在消息应用程序中可用,当用户开始输入用户名时,该应用程序将搜索适当的用户,并将其显示为圆圈,如下面的屏幕快照所示.
I want to build the 'add user' functionality as it is available in the the messages app, where when the user starts typing a username the app searches for the appropiate user and shows it in a circle as in the screenshot below.
这是内置功能吗?如果是这样,那叫什么呢?我还想知道如何实现包含用户名的栏,尤其是在编辑栏时会自动调整大小以显示所有用户(如果将短信发送给多个收件人的情况)以及焦点不在时的事实.栏上只显示:收件人:John Doe,还有2位和5位收件人"
It this a build in functionality? If so, what is it called? I would also like to know how to implement the bar which contains the user names, especially the fact that when editing the bar autosizes to show all the users (in case of an sms being sent to multiple recipients) and when the focus is off the bar it just shows: 'To: John Doe, recipient 2 and 5 more'
在此先感谢您的帮助!
P.S.因为我是新用户,所以无法将屏幕截图作为图像包含在内,但这是URL:撰写短信视图
P.S. can't include the screenshot as an image because i'm a new user but here's the url: Compose SMS view
推荐答案
看看 Three20库特别是TTMessageController和/或TTPickerTextField类.
Take a look at the Three20 library in particular the TTMessageController and/or TTPickerTextField classes.
这篇关于在iPhone SMS应用程序中实现添加联系人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!