Angela Yu Xcode 12 Course - Part 12 (lectures 144 to 156)
Here we are - another sizeable gap between entries! It's been longer than I hoped for but just difficult to find the time. I hope that this changes, as since June I've been pretty consistent at maintaining my coding time. Anyway, I'm NEARLY at the point of where I was with Angela's Xcode 11 course. Definitely a good shout to recap and go over stuff with this one, especially as Swift has updated and I need refreshers anyway. OK here we go!
Start Time - 12:19
Clima App
So the Application Programme Interfaces (APIs) access online information - saving a LOT of coding time, plus with real-time updated information.
Ok so one thing was putting everything to the desktop - that's where the reference to various files will be. So OK fair enough!
Multiple view controllers - I've done this before so no biggy. Navigating between them - that will be useful for the next app!
Segue - moving between view controllers. So Angela has set up all of the icons, views, controllers, constraints etc.
Cocoapods
A dependency manager for Xcode projects. It has a whole bunch of libraries - collection of code.
Now I have sorted this from before. So I shouldn't have to do all that again....
The progress bars do look really cool! Basically window shopping for the code bases that can use the different progress bars.
I've put that here as I could well face that issue!
I have done the stuff on terminal before.
I'm going through the terminal stuff and so far I don't think there's anything I need to do. Let's just check I have the pod file...
Yes I think I do need to do this!
Right I've got the pod file. It uses Rich Text format - looks pretty.
So pod files are written in Ruby code...
So # is used instead of //
Do and end keywords - equivalents of { and }
OK next step can be ignored as my version is 1.5.3!
So an error has come up and I thought I sorted it but still there....
Location Manager
So it's the xc workspace file that we are actually working from from now on.
Right so updated and all seems ok.
Paused at 12:59
Restarted next day at 18:50
Right so some good stuff about using markers to separate out and organise the code more effectively. Good stuff.
Delegate - I've added this to the UIViewController bit....not totally sure about the delegate bit. I get the conforming to the rules of something.
So basically we're accessing information in the CoreLocation library (we've imported that module) - in this, we can get what we need.
Delegates and protocols - we will be coming back to these concepts. I get the idea that the protocols show a blueprint of behaviour and that delegates is what carries out a certain job...limited understanding!
OK p list part again....
Right so the p list has a property list of code that can be accessed. You can view it as XML code (the source code) which is really fiddly! The p list is much easier to use.
But XML format is needed to add in different keys...
Paused at 19:06
Restart at 21:26
So stop and start! It hasn't been the most productive - various things going on with these entries.
Right so have copied the XML code and put into the source code.
Finish Time - 21:34 (1 hour approx total for this entire session)
So very fiddly stuff again but I'm working through it. I have much more time tomorrow so am going to complete Clima then! That will do for now.
Start Time - 12:19
Clima App
So the Application Programme Interfaces (APIs) access online information - saving a LOT of coding time, plus with real-time updated information.
Ok so one thing was putting everything to the desktop - that's where the reference to various files will be. So OK fair enough!
Multiple view controllers - I've done this before so no biggy. Navigating between them - that will be useful for the next app!
Segue - moving between view controllers. So Angela has set up all of the icons, views, controllers, constraints etc.
Cocoapods
A dependency manager for Xcode projects. It has a whole bunch of libraries - collection of code.
Now I have sorted this from before. So I shouldn't have to do all that again....
The progress bars do look really cool! Basically window shopping for the code bases that can use the different progress bars.
In the next lesson, we'll be installing cocoapods to our project. Some students have gotten an error that says:
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use
xcode-select --switch path/to/Xcode.app
to specify the Xcode that you wish to use for command line developer tools (or see man xcode-select
)
If this occurs to you, this is the StackOverflow post that has the solution:
https://stackoverflow.com/questions/35009531/xcrun-error-active-developer-path-applications-xcode-app-contents-developer/35034807
I've put that here as I could well face that issue!
I have done the stuff on terminal before.
I'm going through the terminal stuff and so far I don't think there's anything I need to do. Let's just check I have the pod file...
Yes I think I do need to do this!
Right I've got the pod file. It uses Rich Text format - looks pretty.
So pod files are written in Ruby code...
So # is used instead of //
Do and end keywords - equivalents of { and }
OK next step can be ignored as my version is 1.5.3!
So an error has come up and I thought I sorted it but still there....
Location Manager
So it's the xc workspace file that we are actually working from from now on.
Right so updated and all seems ok.
Paused at 12:59
Restarted next day at 18:50
Right so some good stuff about using markers to separate out and organise the code more effectively. Good stuff.
Delegate - I've added this to the UIViewController bit....not totally sure about the delegate bit. I get the conforming to the rules of something.
So basically we're accessing information in the CoreLocation library (we've imported that module) - in this, we can get what we need.
Delegates and protocols - we will be coming back to these concepts. I get the idea that the protocols show a blueprint of behaviour and that delegates is what carries out a certain job...limited understanding!
OK p list part again....
Right so the p list has a property list of code that can be accessed. You can view it as XML code (the source code) which is really fiddly! The p list is much easier to use.
But XML format is needed to add in different keys...
Paused at 19:06
Restart at 21:26
So stop and start! It hasn't been the most productive - various things going on with these entries.
Right so have copied the XML code and put into the source code.
Finish Time - 21:34 (1 hour approx total for this entire session)
So very fiddly stuff again but I'm working through it. I have much more time tomorrow so am going to complete Clima then! That will do for now.
Comments
Post a Comment