iOS 9 introduces NSUserActivity Search. The API is very easy, but there are some tricks. The following solutions are tested on iOS 9 beta 3.
On iOS 9 beta 3, NSUserActivity search only works on a real device. Update: On iOS 9 beta 4, NSUserActivity search can work on a simulator.
Need to set NSUserActivity to current activity’s userActivity property.
Otherwise the search result would not show. Reference: StackOverflow
- If you want to show a image and description in the search result. You need to do as the following:
The below is the workable code of an iOS NSUserActivity search on iOS 9 beta 3.