IOS(Swift)

Swift Json Parsing

개복치 개발자 2020. 12. 29. 18:39

이곳의 데이터를 가져와서 파싱하는 방법입니다.

 

 

News API - A JSON API for live news and blog articles

Search worldwide news articles and headlines from all over the web in real-time with our free News API.

newsapi.org

 

 

우선 데이터 형태로 struct를 만들어줍니다.

 

 

 

 그리고 ViewController에서 파싱을 진행하면 됩니다.

 

 

 

 

 

 

 

 

 

'IOS(Swift)' 카테고리의 다른 글

'UIScene' is only available in iOS 13.0 or newer  (0) 2020.12.30
IOS Safe Area Remove(Storyboard)  (0) 2020.12.30
IOS Custom Table Cell  (0) 2020.12.29
IOS Tableview  (0) 2020.12.28
IOS Segue 화면이동 데이터 전달  (0) 2020.12.28