Duplicate search results in spotlight

眉间皱痕 提交于 2019-12-12 03:53:08

问题


I have a requirement where I need to use NSUSerActivity and Corespotlight together. I see duplicate search results in spotlight even after I set relatedUniqueIdentifier =uniqueidentifer.

Here is the steps I implemented in my project.

1) Create all CSSearchableItems in appdeleagte didFinishLaunchingWithOptions method.

2) Create NSUSerActivity in specific viewcontroller where relatedUniqueIdentifier = uniqueidentifer(CSSearchableItem)

Appreciate your help.


回答1:


The issue got resolved after adding requiredUserInfoKeys in NSUSerActivity.



来源:https://stackoverflow.com/questions/34732192/duplicate-search-results-in-spotlight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!