Core-Spotlight
suggest changeObjective-C
- Create a new iOS project and add CoreSpotlight and MobileCoreServices framework to your project.
- Create the actual CSSearchableItem and associating the uniqueIdentifier, domainIdentifier and the attributeSet. Finally index the CSSearchableItem using [[CSSearchableIndex defaultSearchableIndex]…] as show below.
- OK!Test the index!
enter image description here
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents