新的搜索API是否可以在搜索结果单元格中添加播放按钮?
我尝试了以下代码:
let attributeSet = CSSearchableItemAttributeSet(itemContentType: kUTTypeAudio as String)
...
attributeSet.contentType = kUTTypeAudio as String
attributeSet.contentURL = NSURL(fileURLWithPath: dataPath)
在主题演讲中,他们搜索了一部电影,并得到了一个带有播放按钮的结果。也许这在以后的测试版中是可能的吗?