[IOS, SWIFT]JSON Get 예제

Json 안짱남 Swift 짱남 넘 깐깐함

데이터를 가져와서 하나씩 가져오거나 Swift Code 쪽을 보면

뭐 기타등등 가져오는 방법이 단순히 있다…;;;

에휴… IOS 깐깐하네…

ViewController.swift

Swift Code

PHP Code는 제 다른 포스팅 참고하세요

JSON 받을 결과값

[{“PostDateGmt”:[“0000-00-00 00:00:00″],”PostTitle”:[“\uc790\ub3d9 \uc784\uc2dc\uae00″],”Guid”:[“http:\/\/madebykaus.com\/?p=761”]},{“PostDateGmt”:[“0000-00-00 00:00:00″],”PostTitle”:[“\uc790\ub3d9 \uc784\uc2dc\uae00″],”Guid”:[“http:\/\/madebykaus.com\/?p=760”]},{“PostDateGmt”:[“0000-00-00 00:00:00″],”PostTitle”:[“[IOS, SWIFT] JSON \uc608\uc81c”],”Guid”:[“http:\/\/madebykaus.com\/?p=759”]},{“PostDateGmt”:[“2015-06-01 08:54:38″],”PostTitle”:[“[IOS, Swift] \ud2b9\uc815 \ud568\uc218 \ubb34\ud55c \ud638\ucd9c”],”Guid”:[“http:\/\/madebykaus.com\/?p=758”]},{“PostDateGmt”:[“2015-06-01 08:54:25″],”PostTitle”:[“[IOS, Swift] \ud2b9\uc815 \ud568\uc218 \ubb34\ud55c \ud638\ucd9c”],”Guid”:[“http:\/\/madebykaus.com\/?p=757”]},{“PostDateGmt”:[“2015-06-01 08:54:25″],”PostTitle”:[“[IOS, Swift] \ud2b9\uc815 \ud568\uc218 \ubb34\ud55c \ud638\ucd9c”],”Guid”:[“http:\/\/madebykaus.com\/?p=756”]},{“PostDateGmt”:[“2015-05-30 01:16:35″],”PostTitle”:[“[IOS, XCode]Objective-C \uac04\ud3b8 \uc815\ub9ac – 1″],”Guid”:[“http:\/\/madebykaus.com\/?p=755”]},{“PostDateGmt”:[“2015-05-30 01:16:35″],”PostTitle”:[“[IOS, XCode]Objective-C \uac04\ud3b8 \uc815\ub9ac – 1″],”Guid”:[“http:\/\/madebykaus.com\/?p=754”]},{“PostDateGmt”:[“0000-00-00 00:00:00″],”PostTitle”:[“[IOS, Xcode] Json decode”],”Guid”:[“http:\/\/madebykaus.com\/?p=753”]},{“PostDateGmt”:[“2015-05-28 07:11:13″],”PostTitle”:[“[IOS, XCode] \ubcc0\uc218 \ud615\ubcc0\ud658″],”Guid”:[“http:\/\/madebykaus.com\/?p=752”]}]

댓글 남기기