Тёмный

Decode JSON pulled from Web API Swift Xcode Tutorial - Crypto Price Tracker App 

Code With Cal
Подписаться 11 тыс.
Просмотров 6 тыс.
50% 1

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 14   
@AtesotFlavor
@AtesotFlavor 2 года назад
Yo! This is exactly what I needed! Thanks much!
@clearcut3674
@clearcut3674 2 года назад
Great tutorial! Maybe best on RU-vid)
@MrYega-zq7rz
@MrYega-zq7rz 2 года назад
Good Video!
@비트코인공무원
@비트코인공무원 2 года назад
I couldn't decode json data into swift file correctly. My project couldn't get a value from the api
@CodeWithCal
@CodeWithCal 2 года назад
Could be lots of things. Will need more to provide any useful help
@mujtabasai4581
@mujtabasai4581 2 года назад
How would you do this example using a Tableview? I tried doing it but there was some conflicts between the functions so I was getting an error
@CodeWithCal
@CodeWithCal 2 года назад
You want to put the data in an array and then feed that to your table view
@mujtabasai4581
@mujtabasai4581 2 года назад
@@CodeWithCal Thanks!
@zachfarmer1696
@zachfarmer1696 2 года назад
Following along to pull data from a different API, I get this error code however "Failed to log metrics keyNotFound(CodingKeys(stringValue: "strInstructions", intValue: nil), Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "meals", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "No value associated with key CodingKeys(stringValue: \"strInstructions\", intValue: nil) (\"strInstructions\").", underlyingError: nil))" It seems as if it wants keys. Any guidance would be great!
@CodeWithCal
@CodeWithCal 2 года назад
Is there a strInstructions in the data. Hard to say without getting into detail. I think the answer is in the error message
@zachfarmer1696
@zachfarmer1696 2 года назад
@@CodeWithCal I ended up getting around it, I appreciate the response and the video!
@abhishekthakare5230
@abhishekthakare5230 2 года назад
Hi! I'm trying to implement this tutorial to create my own project, but I'm having trouble with getting the right json information into my code. I am also working with a crypto api, but the json file only has one file that looks like this for the one cryptocurrency I am working with (eth): {"USD":4544.87,"EUR":3941.84,"CNY":29281.01,"JPY":516069.14,"GBP":3356.72} How would I go about this differently when writing the certain methods and creating the different variables?
@CodeWithCal
@CodeWithCal 2 года назад
Its all about unpacking the json. In the format that is provided by the API. I believe this tutorial has all the information required for you to get what you need from that sample data you provided
Далее
Note App Core Data Swift Xcode Tutorial
13:14
Просмотров 28 тыс.
Данные из API в TableView на Swift
14:15
Просмотров 8 тыс.
The Problem With Microservices
17:47
Просмотров 434 тыс.