-1

I have been trying to learn xcode and swift by example.I have tried tons of examples I searched for, all of which fail in one way or another...usually wrong swift version or syntax. I want to make a very simple app that makes an api call to my personal weather station and prints the json data to a text box or frame on my single view app. I want to learn the details and presentation as I go. I would like to perfect the story board and view as I learn new concepts.

https://api.weather.com/v2/pws/observations/current?stationId=KKSSPRIN16&format=json&units=e&apiKey=221d8fc5255d49a59d8fc5255db9a5fd

I would sure appreciate any guidance you may be able to give

I am running xcode 11 with swift 5.1

  • Post what you have already tried. (code). Or get down-voted to oblivion by trigger happy people of stackoverflow ! – Zyfe3r Dec 17 '19 at 04:42
  • You can check this https://stackoverflow.com/questions/24321165/make-rest-api-call-in-swift – Sailendra Dec 17 '19 at 07:45

1 Answers1

0

Take observations as a dictionary of Any,and then take the key you want at the indexpath.row.

Haya Hashmat
  • 137
  • 10