我正在学习用 swift2 编写的教程——现在我安装了 swift2.1。在 Swift 2.1 中,以下强制转换会引发错误
dictionaryOK = (dictionary as! NSDictionary as? Dictionary)!
错误是
Cannot assign value of type 'Dictionary<Key,Value>' to type 'NSDictionary'
有人可以帮我解决这个问题吗?
我正在学习用 swift2 编写的教程——现在我安装了 swift2.1。在 Swift 2.1 中,以下强制转换会引发错误
dictionaryOK = (dictionary as! NSDictionary as? Dictionary)!
错误是
Cannot assign value of type 'Dictionary<Key,Value>' to type 'NSDictionary'
有人可以帮我解决这个问题吗?