0

ここで何が間違っていますか。SwiftyJSON を使用しています。最初の行は正しい値を出力します。2 行目に「メンバー文字列が見つかりませんでした」というエラーが表示されます。ここで文字列値を取得できないのでしょうか?

println(json["weather"][0]["description"])    // prints the correct value
if let description = json["weather"][0]["description"].string {
    self.descriptionLabel.text = description
}
4

1 に答える 1