xcode - 导入 MobileCoreServices 后 Xcode 中没有任何建议

标签 xcode swift swift2 xcode7

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/

相关文章:

ios - 在 SpriteKit 游戏中每 n 秒添加一个 "life"(钢琴 block 的方式)

IOS:证书问题

iOS:Alamofire 多部分图像提交

ios - 如何通过 Swift 从 Google 搜索结果页面 URL 中提取搜索关键字?

swift 2.0 : use of self in method call before stored properties are initialised

ios - 非 View Controller 类中的 UITextViewDelegate

ios - 开发团队未填充到 xcode 中

iphone - 使用某些类型的方法删除对象时出现 NSMutableArray 错误

iphone - 创建一个可以在iPhone上安装的应用程序文件,然后再将其上传到AppStore

swift - NSOperationQueues 在被释放之前总是完成它们的队列吗?