Excellent videos! I've watched 4 of your JSON videos. I like your content. I'm going to try to do some app on my own and have some examples to look at now for guidance. I look forward to more uploads from you.
Very good video. I know its for a quick tutorial on how to pass data and parse, but for beginners I'd suggest you use guard let instead of force-unwrap for future videos. This will help people who are learning to get into the habit of coding without such error prone syntax. Nevertheless, great video! Keep it up.
So you download the JSON and save it locally on the phone, and then generate a table view using the downloaded data? So then you could also view the data when offline, and only download it the first time the app is launched, and reload it whenever the user had internet access?
Hello programmers ;) ! Nice Tuto Yash! I like the new music intro !! should we implement a nested enum CodingKey to rename keys as "attack_type", in order to respect Apple guidelines ?!
Hi , Great tutorial. Thank you so much. Can you please show how to add search bar to this tutorial. I watched your previous videos on swift3. but could not able to get it on this tutorial.
hi thank you for video. When I run the codes on my own computer, I get an error. Can you help me? I couldn't find the source code from the link. Can you share the source code again? ERROR : ------------------------ keyNotFound(CodingKeys(stringValue: "attact_type", intValue: nil), Swift.DecodingError.Context(codingPath: [_JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "No value associated with key CodingKeys(stringValue: \"attact_type\", intValue: nil) (\"attact_type\").", underlyingError: nil)) -------------------------
Wht if url for image has spaces..... %20% and how to overcome it ..... if their r n number of images in api link.... but some links has spaces in between link.... Any idea?
hi there, i have been using the model object to store the values but you are using structure instead. any particular reason for that or just a matter of choice.....
XCode say "Could not attach to pid : “7202” Ensure “tableVeiw-JSON” is not already running, and iosif has permission to debug it." at first run, when we check downloadJSON(). I wrote all like you. can you help me?
Hey yash, great video... I was wondering if it is possible to publish your own json data online and pull it into the app. I've been trying and so far no luck
Could you maybe detail it shortly for me? Whatever I publish is returning the JSON error detailed in the swift code. If you'd rather email me it's brightworks2017@gmail.com. I'd really appreciate it
Hello Yash, I have watched your all videos , all are very nice. I have a request to you, can you please make a video about encodable and Decodable in hindi.. please.
Hello Fateh, Nice to know you like my videos. I cannot make a video in Hindi because i have diverse audience to teach. I am really sorry for that. What i can do is, i will make a video of encodable and decodable in english. You watch it, if you still have any doubt you can mail me. Don't worry those concept are simple and fun. We here at Yp.py always find a way out. :) Thank you, Yp.py and team
in cell for row at func in table view i got error . var madhu = [DataModel](),declared as global. cell.textlabel?.text = madhu[indexPath.row]..error showing that Cannot assign value of type 'DataModel' to type 'String?'.please solve this
My JSON return data like: { "count": 1 "news": [ { "text": "text" "date": "12.34.56" } ] } what should i do to get "text" value and "date" value. when trying to init var news = [String], im getting parsing error, smth like dictionaries wasn't expected
i don't know why I'm getting this error JSON ERROR i follow your whole idea i even go to emulator settings and "Allow HTTP Service" but still i m getting JSON ERROR I'm Also usig same api
Followed the exact steps, however when I run the app, I always receive a Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386 ) at part: destination.hero = heros[(tableView.indexPathForSelectedRow?.row)!] . What can I do to solve this?
Could you please tell me how to make the json data. How would I make it if i wanted to make my own app with its own data from a server. For example I want to make a store app and I need to get images and labels from a server how would i make the api like in the description?
Arwa L, I found out the answer which is, you have to use node.js,Go, python or java to make the api. Any server side language. Swift has one called server side swift but it is not that great. I will learn Node.js to make apis
Yp.py i got the JSON ERROR instead of successful at 10:13, i dont know how should i rectify that. And also i have nested dictionary and then array in my json . Will the nested dictionary affect the method u follow for paresing .
Thank yo very much Yp. I love to watch your videos and like you way of presentation. I have used your code of JSON decoding but I am getting tough time to handle null record. Would you please suggest some code to deal with null. "SiteType": 1, "SeaTemp": null, "SeaLevel": null, "Velocity": "N/A", I am getting the following error; valueNotFound(Swift.String, Swift.DecodingError.Context(codingPath: [Foundation.(_JSONKey in _12768CA107A31EF2DCE034FD75B541C9)(stringValue: "Index 0", intValue: Optional(0)), SwiftTest.WeatherStats.(CodingKeys in _FC90364A6CFA746F6BCC27292B607B0C).SeaTemp], debugDescription: "Expected String value but found null instead.", underlyingError: nil))
I am getting error from inside downloadJSON function. When i go to the detail view controller it crashes and my error is that my tableView.reloadData() is coming back nil after i swap screens
👋 New video available with better resolution & GitHub repo 👋
th-cam.com/video/8dn9HzNigm8/w-d-xo.html
Swift with Yash is BEYOND GODLIKE! Thanks Man
I can't believe this old tutorial helps me to solve my problem. THANKS.
Glad it helped
Your tutorials are amazing! It's easy to follow along, and very clear. Thank you so much!
Thank you :)
Very Nicely explained... Thanks brother.
Excellent tutorial has served me a lot ... an additional question please:
How to Add Pull to Refresh ?
Excellent videos! I've watched 4 of your JSON videos. I like your content. I'm going to try to do some app on my own and have some examples to look at now for guidance. I look forward to more uploads from you.
thank u so much for the video! it helped me a lot!!^^
Very good video. I know its for a quick tutorial on how to pass data and parse, but for beginners I'd suggest you use guard let instead of force-unwrap for future videos. This will help people who are learning to get into the habit of coding without such error prone syntax. Nevertheless, great video! Keep it up.
I agree with you, thank you for your suggestion :).
thanks for this amazing video buddy
Thank you!
How did you create your own api?
Hey there! it's a nice tutorial and it will be much better if you can explain on how to do this with "POST" method.
Venkatesh Chejarla yes can you please do this?
COOOOL!!!!!!! your tutorial really helped me! Thanx very much!!!!
beside showing data to next vc can show that json data on alert dialouge
So you download the JSON and save it locally on the phone, and then generate a table view using the downloaded data? So then you could also view the data when offline, and only download it the first time the app is launched, and reload it whenever the user had internet access?
Hello programmers ;) !
Nice Tuto Yash! I like the new music intro !!
should we implement a nested enum CodingKey to rename keys as "attack_type", in order to respect Apple guidelines ?!
Hi , Great tutorial. Thank you so much. Can you please show how to add search bar to this tutorial. I watched your previous videos on swift3. but could not able to get it on this tutorial.
Thank you :) I will look into search bar and try to make a video on that.
Yp.py hi. Still waiting for the searh bar :) just a reminder
hi thank you for video. When I run the codes on my own computer, I get an error. Can you help me? I couldn't find the source code from the link. Can you share the source code again?
ERROR :
------------------------
keyNotFound(CodingKeys(stringValue: "attact_type", intValue: nil), Swift.DecodingError.Context(codingPath: [_JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "No value associated with key CodingKeys(stringValue: \"attact_type\", intValue: nil) (\"attact_type\").", underlyingError: nil))
-------------------------
2021 Great tutorial bro
thanks bro you are amazing
How can I update simultaneously data between web server(msyql+apache+php) and iphone .
Nice. Could you please explain why we need @escaping and Dispatch ? Thanks for the great video!
I will try to do it in future video.
@@swiftwithyash if video has been created will you share the link?
badia videos
Can you do this tutorial for Xcode 8 Swift 3 ASAP please??
I am getting a json error
I just love you
Wht if url for image has spaces..... %20% and how to overcome it ..... if their r n number of images in api link.... but some links has spaces in between link....
Any idea?
Sorry if someone asked before. What keyboard are you using?
In the first page, I faced the JSON ERROR which says " The data couldn’t be read because it is missing." what is wrong with mycode?!?!?
? Thank you, what is your search method
thank you for the tutorial.
You are welcome!
6 seconds in, . Dota 2!!! :D liked already
a trick: you can watch series at Flixzone. Me and my gf have been using it for watching a lot of movies lately.
@Deangelo Kasen Definitely, been watching on Flixzone} for since november myself :)
@Deangelo Kasen yup, I've been using Flixzone} for years myself :D
Do you have a link for this code's github repository?
Great job , please Are you configure demonstration or sample for SiriKit xcode 9 , INSEARCHForBillsIntent?
I will look into that.
hi there, i have been using the model object to store the values but you are using structure instead. any particular reason for that or just a matter of choice.....
if we have to create data by self then what we shoud do? in the place of your url plz
Great tutorial man. Thanks =]
Project link doesn’t work, any updated link?
whats ur mmr :D ?
XCode say "Could not attach to pid : “7202”
Ensure “tableVeiw-JSON” is not already running, and iosif has permission to debug it." at first run, when we check downloadJSON(). I wrote all like you. can you help me?
how to add uisearchbar in this code?
Thank you!
You're welcome!
How I should take if it is dictionary format....
thank you sir!
Please find the search bar method
Sure
Please How ?!Yp.py
💔☹️
Hey yash, great video... I was wondering if it is possible to publish your own json data online and pull it into the app. I've been trying and so far no luck
Yes :)
Could you maybe detail it shortly for me? Whatever I publish is returning the JSON error detailed in the swift code. If you'd rather email me it's brightworks2017@gmail.com. I'd really appreciate it
Mashallah ........
Hello sir please guide to parse son for login page & registration page in iOS using swift
th-cam.com/video/UPKCULKi0-A/w-d-xo.html
Hello Yash, I have watched your all videos , all are very nice. I have a request to you, can you please make a video about encodable and Decodable in hindi.. please.
Hello Fateh,
Nice to know you like my videos. I cannot make a video in Hindi because i have diverse audience to teach. I am really sorry for that.
What i can do is, i will make a video of encodable and decodable in english. You watch it, if you still have any doubt you can mail me.
Don't worry those concept are simple and fun.
We here at Yp.py always find a way out. :)
Thank you,
Yp.py and team
Yp.py thanks.
Thanks
Thank you 🙏 ☺️
☺️
thank you man ❤️
in cell for row at func in table view i got error . var madhu = [DataModel](),declared as global.
cell.textlabel?.text = madhu[indexPath.row]..error showing that Cannot assign value of type 'DataModel' to type 'String?'.please solve this
I'm getting this same issue, any fixes for this?
My JSON return data like:
{
"count": 1
"news": [
{
"text": "text"
"date": "12.34.56"
}
]
}
what should i do to get "text" value and "date" value. when trying to init var news = [String], im getting parsing error, smth like dictionaries wasn't expected
now i know hot to get it, but i cant really put it inside table. give me some tips please
i don't know why I'm getting this error JSON ERROR i follow your whole idea i even go to emulator settings and "Allow HTTP Service" but still i m getting JSON ERROR I'm Also usig same api
struct HeroStats: Decodable {
let localized_name : String
let img: String
let primary_attr: String
let name: String
}
make sure this is correct.
Can you teach us how to upload photos? please
you can upload photos with multipart form data using Alamofire
thank you sir!
Glad you liked it :)
Followed the exact steps, however when I run the app, I always receive a Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386 ) at part: destination.hero = heros[(tableView.indexPathForSelectedRow?.row)!] . What can I do to solve this?
Try it again. Send me full error.
Thanks for your fast reply. The full error message is: Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
Could you please tell me how to make the json data. How would I make it if i wanted to make my own app with its own data from a server. For example I want to make a store app and I need to get images and labels from a server how would i make the api like in the description?
same as you. i wanna know how .. help us
Arwa L, I found out the answer which is, you have to use node.js,Go, python or java to make the api. Any server side language. Swift has one called server side swift but it is not that great. I will learn Node.js to make apis
You can create a static JSON file without all of that. Search create JSON File online. Fill in your details, save and upload somewhere.
I got the son error instead of successful, how should I rectify that.
Can you be more descriptive?
Yp.py i got the JSON ERROR instead of successful at 10:13, i dont know how should i rectify that. And also i have nested dictionary and then array in my json . Will the nested dictionary affect the method u follow for paresing .
Nice video brooo
Appreciated !! :)
Hi, can you make slide menu?
I have exactly what you want :)
th-cam.com/video/mmSEidHEGL8/w-d-xo.html
Let me know if you like it or not.
Thank you :)
Thank yo very much Yp. I love to watch your videos and like you way of presentation. I have used your code of JSON decoding but I am getting tough time to handle null record. Would you please suggest some code to deal with null.
"SiteType": 1,
"SeaTemp": null,
"SeaLevel": null,
"Velocity": "N/A",
I am getting the following error;
valueNotFound(Swift.String, Swift.DecodingError.Context(codingPath: [Foundation.(_JSONKey in _12768CA107A31EF2DCE034FD75B541C9)(stringValue: "Index 0", intValue: Optional(0)), SwiftTest.WeatherStats.(CodingKeys in _FC90364A6CFA746F6BCC27292B607B0C).SeaTemp], debugDescription: "Expected String value but found null instead.", underlyingError: nil))
in your struct where you declare your json attributes , make the nullable field an optional e.g var title: String?
How to set a cell color according to number of legs
I mean different colour for 4 legs
Different colour for 3 leg superhero
Before setting the cell color you can have if else statement to check whether the hero has 4 legs or 3.
How I hate storyboards. Bleeee.
I am getting error from inside downloadJSON function. When i go to the detail view controller it crashes and my error is that my tableView.reloadData() is coming back nil after i swap screens