问题描述
在iOS照片应用中,搜索“ 9月”后,我可以在列表中按一下它,然后将标签添加到搜索栏中(如图所示)
如何使用Swift
在我的应用中执行类似的操作?
解决方法
在AppKit中,我们有NSTokenField这样的东西。苹果显然还没有发布可立即使用的iOS等效版本。尽管您可能想签出一些自定义实现,但还是有一些。
- https://github.com/nekonora/TaggerKit
- https://github.com/thermogl/TITokenField
- https://github.com/zoonooz/ZFTokenField
- https://github.com/jasarien/JSTokenField
Is there an iPhone equivalent to the NSTokenField control?
https://stackoverflow.com/search?q=nstokenfield+ios