Posts

Showing posts from March, 2019

Angela Yu Xcode 12 Course - Part 20 (lectures 190 to 192)

Image
Another big gap between entries! Never mind. It's the 'Spring Break' (sounds very American, eh!) so a bit more time hopefully. Going to pick up where I left off with Firebase. The layout and setup was a bit different to what Angela had so need to bear that in time.  Let's go! Start Time - 12:48 Xcode installing a few updates. Let's just recap where we got to. I currently have this screen while I boot up Xcode. Last time this was running indefinitely and I had to leave it. I had a new Xcode file - the xcworkspace one and got all of the pod install sorted. If the above message is still there when Xcode is updated (hopefully soon!) then I will just crack on regardless. A good chance to look ahead at the lectures in this particular project: OK here is a run through - 191 - saving data to Firebase 192 - Registering users 193 - closures (YES, I need to understand these better!) 194 - event driven nature of apps 195 - completion handlers 196- navigation c...

Angela Yu Xcode 12 Course - Part 19 (lectures 185 to 190)

Image
Two entries in a day?! Yes! Well the previous one was more of a 'what I did before' so not that much of an achievement, really. Anyway, I am going back to Angela's course after a brief detour for my own project. I've already got an idea for another project, a much more tricky one - Guess Who! With that, I would have a number of different pictures i.e. 16. The computer would randomly choose one, then the player would select questions to eliminate the pictures that do not match to it. Until there is just one left - number of questions it took gives them a score. Anyway, leaving that for now and doing some more learning! Let's go! Start Time - 15:52 Flash Chat App This has got about storing data - cloud-based. That could be really interesting. Also table view controller...again something else that I want to know more about. Firebase, cocoa pods....so some technical stuff again! Firebase A service from google. It has cloud based infrastructure to sav...

*Xcode Project Entry 3* Times Tables Quiz - Part 5

This is cheating....a little! The day after my last entry, I managed to fix and completely sort out the app! I spent a good hour or so on it, changing the code so that the pop ups came up for the end of the timer. What a feeling it was to sort it all out! One of the issues was not having all outlets connected and having some bogus ones, which I removed. That helped. This bit I commented out as it made no difference: // //    func hideKeyboard() { //        textFieldDisplay.resignFirstResponder() //    } // //    func textFieldShouldReturn(_ textField: UITextField) -> Bool { //        textFieldDisplay.resignFirstResponder() //        return true //    } I'm not entirely convinced that I need the keyboard code at all...let's see! Actually no real other code there other than the UITextFieldDelegate is conformed to (for the textbox).  So here's what we ...

*Xcode Project Entry 3* Times Tables Quiz - Part 4

Image
11 days! 11 days?! That is a seriously poor effort. It may be a reflection on the fact that I have been doing more exercise lately - gym, tennis and yoga but even then...not good at all! It's nothing to worry about though! Another factor is that last time, I failed to get a times table generator working. So that's what I need to achieve first. I will spend half an hour or so trying to figure it out, if not then I will have to find one online, which is no shame! Anyway, let's just move on and accept that a week and a half is gone but from now on we're getting the time back in! Start Time - 13:44 So like I said, let's revisit that times tables generator... Ok, I've got the random numbers and what the answer should be returned as - in separate functions. I've also connected all of the outlets -    @IBOutlet weak var questionLabel: UILabel !          @IBOutlet weak var timerDisplay: UILabel !          @IBAc...