「Swift」for文で辞書データの要素を取得するサンプル

サンプルコード

var cft = ["key1":"data001", "key2":"data002", "key3":"data003"]

for (key, value) in cft {
    println("dictionary key is \(key), value is \(value)")
}

 

Swift

Posted by arkgame