如何将单个Json Field转换为String?

时间:2016-03-10 11:18:54

标签: ios json swift casting

let list: Array<JSON> = json.arrayValue

for element in list {
    print(element["id"])
    print(element["name"])
    print(element["url"])

    var imageUrl:NSURL?=NSURL(string:(element["url"]as?String)!)
}

0 个答案:

没有答案