Posts

Showing posts with the label Parse

Angela Yu Xcode 12 Course - Part 18 (lectures 175 to 184)

So this time we're by the pool by RAK! Probably better in terms of wind, sand etc... I've arranged for someone to collect my laptop to replace the screen. Have also ordered a new case and an ant-glare screen cover. All of these things should help and it's worth the money. Well it's a lot of it! 1575 to repair; 200 for anti-glare screen; 50 for cover. Anyway.... Today I'm going to start the Bitcoin tracker challenge. Going to spend an hour on it - maybe more. Let's go! Start Time - 10:27 OK, step 1 is to download the project.. STEP 1 Right, I am not going to type much here as it is pretty much following instructions. Will add anything that's a useful learning point! OK, after putting in the currencyPicker.delegate = self (and the same for the dataSource one), errors come up because we HAVE NOT CONFORMED TO THAT PROTOCOL! That makes sense - we've put in those protocols in the view controller. So those methods need implementing. Ok. Using the...

Angela Yu Course Part 16 (lessons 154 to 156)

Yes! We're continuing with Angela's Course! Lots of new concepts we're being introduced to via APIs but all good stuff. Useful in the future - lots of possibilities in terms of accessing data from websites.  JSON and how to Parse it let weatherJSON : JSON = response. result .value The issue here is that we need to force unwrap the value here. So Swift has given this automatic correction: let weatherJSON : JSON = response. result . value as ! JSON Angela's correction though is this -  let  weatherJSON :  JSON  = JSON(response. result . value!) OK so the build is succeeding but the 'location unavailable' keeps coming up on the main screen. No idea why.  OK I can't do the next bit - copy the output in the console into the JSON website as I only have error output. That's a shame! The JSON data shows it in key value pairs - like a dictionary. The JSON editor online makes it into a more human readable format! Remembe...