0
請參見下面的簡單代碼:斯威夫特混淆「未解決的標識符」在for循環
for (index: String, subJson: JSON) in json! {
var aUser = User(json: subJson) # "Use of unresolved identifier 'subJson'"
users.append(aUser)
}
爲什麼它說subJson得不到解決?我在for循環聲明中定義了它......順便說一下,這只是從Swift 2.0開始的。
基本上是這個問題:http://stackoverflow.com/questions/32672279/error-after-updating-the-xcode-to-7-0。 –