import UIKit
import CoreSpotlight
import MobileCoreServices
我将此框架导入到 Xcode,但在此时输入以下内容时没有看到建议:
let item = CSSearchableItemAttributeSet(itemContentType: kUTType //here I have no suggests/list with suggestions.
item.title = listToDo[indexPath.item]["title"]
item.contentDescription = listToDo[indexPath.item]["state"]
有人能告诉我为什么吗? (CoreSpotlight 的建议是可以的)
最佳答案
有时 Xcode 会停止提供建议。清理构建文件夹和/或重新启动通常可以解决问题。
关于xcode - 导入 MobileCoreServices 后 Xcode 中没有任何建议,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33708818/