搜索栏中带有 Swift 的标签
Tags in Search Bar with Swift
在 iOS 照片应用程序中,搜索 'September' 后,我可以在列表中按它,然后它会在搜索栏中添加一个标签(如图所示)
如何使用 Swift
在我的应用程序中执行类似的操作?
在 AppKit 中我们有 NSTokenField 类似的东西。 Apple 显然还没有发布 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://whosebug.com/search?q=nstokenfield+ios
在 iOS 照片应用程序中,搜索 'September' 后,我可以在列表中按它,然后它会在搜索栏中添加一个标签(如图所示)
如何使用 Swift
在我的应用程序中执行类似的操作?
在 AppKit 中我们有 NSTokenField 类似的东西。 Apple 显然还没有发布 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://whosebug.com/search?q=nstokenfield+ios