O'Reilly logo

Mastering iOS 10 Programming by Donny Wals

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Indexing with CSSearchableItem

Currently, our indexing works and we can find any content we saw earlier. We can even select results from the Spotlight index and have our app open on the correct page. If you've taken on the challenge to implement the handling of detail pages, your app should be able to handle continuation of any activity we've indexed. Wouldn't it be cool if we could be a bit more proactive about indexing though? Ideally, we would index any new family members or movies right as the user adds them.

This is exactly what CSSearchableItem is good at. The CSSearchableItem class enables you to index content the user might not have seen before. Indexing CSSearchableItem instances is pretty straightforward. The steps involved are similar ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required