0
xcodeは、 '、'区切り記号を挿入するよう指示しています。以下は私のコードです。私がXcodeが私に言ったことを入れても、私はまだエラーが発生します。誰かが私が間違っていることを知っていますか?Xcodeは、予想される '、'区切り文字を入れようとしています。
} else {
if let p = placemarks?[0] {
var subThoroughfare:String = ""
if (p.throughfare != nil {
subThoroughfare = p.subThoroughfare
} // there are telling me to put this ',' here
self.addressLabel.text = "\(subThoroughfare) \(p.thoroughfare) \n \(p.subLocality) \n \(p.subAdministrativeArea) \n \(p.postalCode) \n \(p.country)"
} // xcode is telling me to put this ',' here
} // xcode is telling me to put this ',' here
})
最初の 'else'が属する' if'や、最後の行の閉じ括弧が一致するものなど、周囲のコードを表示してください。構文エラーはおそらくあなたが示したコードではなく、その前にコンパイラを混乱させるものです。 –