「Swift」for文で辞書データの要素を取得するサンプル
サンプルコード
var cft = ["key1":"data001", "key2":"data002", "key3":"data003"] for (key, value) in cft { println("dictionary key is \(key), value is \(value)") }
Coding Changes the World
サンプルコード
var cft = ["key1":"data001", "key2":"data002", "key3":"data003"] for (key, value) in cft { println("dictionary key is \(key), value is \(value)") }