简体   繁体   English

输入名称,例如短信或Facebook应用

[英]Name input like SMS or Facebook app

I'm trying to find a library that can handle autocompletion with tokened (grouped) texts. 我试图找到一个可以处理带有标记(分组)文本的自动补全的库。

There are some very nice libraries out there for autocompletion such as: 有一些非常好的自动补全库,例如:

https://github.com/EddyBorja/MLPAutoCompleteTextField https://github.com/hoteltonight/HTAutocompleteTextField https://github.com/TarasRoshko/TRAutocompleteView https://github.com/EddyBorja/MLPAutoCompleteTextField https://github.com/hoteltonight/HTAutocompleteTextField https://github.com/TarasRoshko/TRAutocompleteView

The problem here is, I want to make the selection look like names tagging at SMS or Facebook app. 这里的问题是,我想使选择看起来像在SMS或Facebook应用程序中标记的名称。 So when the user tries to delete, he should delete all the text. 因此,当用户尝试删除时,他应该删除所有文本。

There are good jQuery implementations, one of them is this: 有好的jQuery实现,其中之一是:

http://loopj.com/jquery-tokeninput/ http://loopj.com/jquery-tokeninput/

I couldn't find any for iOS, perhaps the keywords are very generic, thus Google does not show any related results. 我找不到适用于iOS的任何软件,也许关键字非常通用,因此Google不会显示任何相关结果。 Is there any library for this or can you provide any code examples? 是否为此提供任何库,或者您可以提供任何代码示例?

What you're trying to achieve can't be done using the public SDK. 您要实现的目标无法使用公共SDK来完成。
However, there exist some nice third party solutions. 但是,存在一些不错的第三方解决方案。
I found this question, Is there an iPhone equivalent to the NSTokenField control? 我发现了这个问题, 是否有与NSTokenField控件等效的iPhone? , which includes links to controls you could use. ,其中包含您可以使用的控件的链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM