I'm implementing the iOS9 Search index using NSUserActivities.
According to the documentation NSUserActivity there should be a property called contentAttributeSet
that is used to add more content to the search item. However looking at the NSUserActivity class in Xcode 7 shows no property with this name. I'm using Xcode 7 beta 6.
Got it now.
The contentAttributeSet is of type CSSearchableItemAttributeSet
, which is a class in the Core Spotlight framework. So I had to add Core Spotlight to my project and import it in the file I was using NSUserActivity in.
Sneaky sneaky, Apple!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With