2015-11-14 16 views
0
import UIKit 
import CoreSpotlight 
import MobileCoreServices 

我進口這個框架,Xcode中後,但我沒有看到一個提示,打字時就在這一瞬間波紋管:沒有建議在Xcode進口MobileCoreServices

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的建議是好的)

回答

0

有時Xcode只是停止提供建議。清理構建文件夾和/或重新啓動通常可以解決問題。