xcode. Aşağıda benim kodum. Xcode'un bana söylediği şeyi koyduğumda bile hata alıyorum. Yanlış yapabileceklerimi bilen var mı? Hala hata görüntülenirseXcode, beklenen ',' ayırıcıyı belirtmemi söylüyor, '0', 'ayırıcı
if (p.throughfare != nil) {
subThoroughfare = p.subThoroughfare
}
eğer kısmını göstermek lütfen ayrıca kodda bu anlamada yardımcı olacaktır: hala hatayı gösteriyorsa
} 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
})
Son satırdaki kapanış parantezleri ne olursa olsun, ilk "else" 'in ait olduğu "gibi" gibi çevreleyen kodu gösterin. Sözdizimi hatası muhtemelen gösterdiğiniz kodda değil, daha önce derleyiciyi karıştırmış bir şey değil. –