Posts

Showing posts with the label APIs

Angela Yu Xcode 12 Course - Part 13 (lectures 157 to 163)

Image
How unusual, an entry on Tuesday afternoon?! Well, mercifully, there is time off work in Dubai due to the Pope's visit! Not that I am seeing the man himself but thank you! Yesterday was also off but no chance to code. So today I have a good hour or so to get some done. My aim is to totally finish the 'Clima' app, then I will have surpassed my progress from last time. It's been a good month or so with Angela and I am 100% happy with that. Loads of useful things picked up along the way, whether the content is new or I had just forgotten bits. Either way, well worth it. The other good news is that I feel NO inclination to switch courses whatsoever. No, I want to stick with this one from Angela until the very end. Then I will review where I am and what the next course of action is. Anyway, let's go! Start Time - 14:04 Asynchronous method - this means it works in the BACKGROUND as a method. If it were in the foreground, it means that it would freeze up the entire app...

Angela Yu Course Part 15 (lessons 145 to 153)

Image
So yes we're back! It makes sense at this point to crack on with Angela's course. I think one of the reasons why I wanted to do the challenges from other courses was to protect myself from failing to understand new content. I need to get past that, which is why I'm going back to Angela's course! Last time with her course, I did some stuff which I can't really remember...so I'm going to crack on but may well need to go back over some stuff. Here we go! Start Time - 11:38 Location Manager So it's the workspace file I need - the one which has had 'pods' added to it.       let WEATHER_URL = "http://api.openweathermap.org/data/2.5/weather"     let APP_ID = "e72ca729af228beabd5d20e3b7749713" Here are the two websites which I am using. The App_ID is our own App ID that is required. So the guys at open weather map need to be able to track who is using their API... API - Application Programming Interface So...

Treehouse Intermediate Course Part 9 (Access Levels and APIs)

Yes another one! That does that make it 5 in a row?! Anyway, today will be fairly brief as there's not much on this course. Then it will mean Intermediate Treehouse complete! I feel like I've got to grips well with certain concepts but am frustrated there wasn't more in practice. Once this is done I will be having a look over the Udemy ones. Right, onto Access Levels! Time started: 16:15 Access Control This is about restricting access to code in other files etc. So this links to Module. E.g. import Foundation etc. Whereas a swift file (ending in .swift) are source files. Open and Public access. UI View Controller - this has open access. Within a module, open and public function in the same way. Open is the least restrictive. Then public, then internal access. Internal access is the default level of access. Then it is 'file private'. You can reduce the access. Private is least open. So a private stored property can only be used within its class. ...