[Swift]for文で辞書Dictionaryのキーと値を取得するサンプル

使用例

var cft = ["KeyA":"U001","keyB":"U002","keyC":"U003"]

for (key,value) in cft{

    println("\(key),\(value)")

}

 

Swift

Posted by arkgame