xcode 如何在 UITextField 中插入蓝色文本标记?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9403006/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 23:24:42  来源:igfitidea点击:

How insert blue text tokens inside UITextField?

iphoneobjective-ciosxcodeipad

提问by JulianoRossi

Is there a way to make the UITextField (or some class similar) create this blue text token natively? If not, someone knows any example code that's similar?

有没有办法让 UITextField (或一些类似的类)本机创建这个蓝色文本标记?如果没有,有人知道任何类似的示例代码吗?

回答by Kiran Panesar

I've not had a chance to test it out, but this might be of interest to you: http://cocoacontrols.com/platforms/ios/controls/jstokenfield

我还没有机会测试它,但这可能是你感兴趣的:http: //cocoacontrols.com/platforms/ios/controls/jstokenfield

(Also, CocoaControls is a great website!)

(此外,CocoaControls 是一个很棒的网站!)

回答by ciryx

TITokenField is also a nice option: https://github.com/thermogl/TITokenField

TITokenField 也是一个不错的选择:https: //github.com/thermogl/TITokenField