指定 Spotlight 关键字 iOS 9

Specify Spotlight keywords iOS 9

在iOS9中,有没有办法给spotlight一个关键字列表,用户可以通过这些关键字搜索特定的应用程序?

示例场景:应用程序标题(显示在 spring 板上):"Photos," 但用户搜索 "Pictures" 或 "Photographs."

如果不是,App Store 中列出的关键字是否用于索引设备上的应用程序?

CoreSpotlight 框架做到了。

您可以使用 NSUserActivityCore Spotlight framework 来实现。

可以使用

Keywords 属性 of NSUserActivity class。 要么 在 Core Spotlight 框架中,可以使用 keywords 属性 of CSSearchableItemAttributeSet