iOS中的Textview with Suggestions List [英] Textview with Suggestions List in iOS
问题描述
我正在尝试实现一个textView,当用户开始输入时(比方说名字),它会显示建议,当他们点击它们时,它会被添加到textView而不是用户按下逗号,并再次使用相同的功能进行另一个名称....
I am trying to implement a textView in which when user starts typing(Let's say names) it would show up the suggestions and when they click them it gets added to the textView than user presses comma and again the same functionality for another name....
最后,textView中的文字应如下所示......
And at the end the text in the textView should look like this...
Aron,Maria,Alex,Cassie
Aron,Maria,Alex,Cassie
任何人都可以建议我如何实现这一目标?
(有点类似于在发布此问题时添加标签!!!)
Can any one suggest me How can I achieve this? (Its somewhat similar to adding the "Tags" while posting this question!!!)
谢谢。
推荐答案
您可以使用NSTokenField替换这里有一些库:
You can use a NSTokenField replacement there is some libraries here :
这篇关于iOS中的Textview with Suggestions List的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!