是否有等效于 NSTokenField 控件的 iPhone? [英] Is there an iPhone equivalent to the NSTokenField control?

查看:27
本文介绍了是否有等效于 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 & 中添加联系人时可以看到这一点邮件应用中的密件抄送字段,以及在消息应用中选择联系人时.

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?

非常感谢,

迈克尔

推荐答案

桌面 Cocoa 中的等效控件是一个 NSTokenField,但似乎没有 Cocoa Touch 的等价物.

The equivalent control in desktop Cocoa is an NSTokenField, but there doesn't seem to be an equivalent for Cocoa Touch.

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

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