O'Reilly logo

iOS Programming Cookbook by Hossam Ghareeb

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

App indexing using NSUserActivity

The first technology of indexing for app indexing is working with NSUserActivity. This class helps you to index items when users perform activities in your app, such as opening specific screens or interacting with app content. Using this activity class will help a user to find the information that they need in search results and will improve your app's ranking. NSUserActivity is not intended to index an app's arbitrary data; it only indexes the user's activities. If you want to index app-specific data, you will need to use Core Spotlight APIs and that's what we will do in the next section:

App indexing using NSUserActivity

In the following demo, ...

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