0
當我從迅速2轉換爲迅速3 ,其現在面臨誤差「曖昧參照構件標」NSKeyValueChangeKey曖昧參考構件標
下面是我的代碼:
class KeyValueChange {
fileprivate let change: [String : AnyObject]
init(change: [String : AnyObject]) {
self.change = change
}
var kind: NSKeyValueChange? {
guard let value = change[NSKeyValueChangeKey.kindKey] as? NSNumber else {
return nil
}
return NSKeyValueChange(rawValue: value.uintValue)
}
var indexSet: IndexSet? {
return change[NSKeyValueChangeKey.indexesKey] as? IndexSet
}
var new: AnyObject? {
return change[NSKeyValueChangeKey.newKey]
}
}
請詳細說明,因爲在很多地方得到相同的錯誤
在此先感謝