有没有相当于NSTokenField控件的iPhone? [英] Is there an iPhone equivalent to the NSTokenField control?

查看:92
本文介绍了有没有相当于NSTokenField控件的iPhone?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我希望用户在UITextField(或等效文件)中键入名称,然后当他们按下返回时,它会将该单词放在通常与标签相关联的蓝色气泡中。然后光标移动到可以添加更多标签的末尾。

In my app I want the user to type names into a UITextField (or equivalent) and then when they press return, it will put that word(s) in a blue bubble that's usually associated with tags. The cursor then moves to the end where they can add more "tags".

在To,CC&添加联系人时可以看到这一点。邮件应用程序中的BCC字段,以及在消息应用程序中选择联系人时。

This can be seen when adding contacts in the To, CC & BCC fields in the Mail app, and also when selecting contacts in the Messages app.

这是如何完成的?它是UIKit中提供的还是其他地方提供的东西?

How is this done? Is it something that's provided in the UIKit or available somewhere else?

非常感谢,

Michael

推荐答案

Venmo刚开源他们的令牌字段。

Venmo just open sourced their token field.

https://github.com/venmo/VENTokenField.git

这篇关于有没有相当于NSTokenField控件的iPhone?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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