Posts

Showing posts from January, 2019

Angela Yu Xcode 12 Course - Part 11 (lectures 132 to 143)

Image
So a poor effort recently! Life gets in the way...Shouldn't feel too bad though as I did a marathon session six days ago (2 hours worth) so another hour today should still help me to meet my three hours per week target. Just writing that makes me feel so proud - at one point I made a vow to try to get an hour a week. The fact that three hours doesn't seem like that much is something to be very pleased about. Anyway, the next part of Angela's course is all Intermediate Swift. Stuff that I will pay attention to but it should be familiar. It dovetails in with what I've been doing for the past few months, well it should at least. I doubt it'll be as technical as Bob's course! Anyway time to go for it! Start Time - 17:34 Classes Right so command line tool file created. I don't actually remember this AT ALL! So glad I am going over it! This sounds exciting - creating a new class and seeing the purpose for it. Cool.  It doesn't like calling...

Angela Yu Xcode 12 Course - Part 10 (lectures 113 to 131)

Image
Right so next project! This was one of my favourite ones from before as there was a lot of logic but it was all very accessible too. With this idea, I could make limitless options and stories. Anyway, let's go! Start Time - 18:19 Right so that's the basic look of the app. And there's the decision tree for all the possibilities. Makes sense. OK project file downloaded! Next bit - tag values of the two buttons. Yes there are two options each time. Right, after some fiddly code, here's what I have - if sender. tag == 1 && storyIndex == 1 {             storyTextView . text = story3             topButton . setTitle ( answer3a , for: . normal )             bottomButton . setTitle ( answer3b , for: . normal )             storyIndex = 3                      } else if sender...

Angela Yu Xcode 12 Course - Part 9 (lectures 93 to 112)

Image
Managing to keep some momentum going! Have around 45 minutes or so now. The next chapter is the Quizzler app, which I used again recently to make my F1Quiz. So this really is a skim through. Couple of key things I want to go over are the pop ups and the progress bar. And the general MVC principle again. OK let's go! Start Time - 10:35 Status Bar Style - light. This is for the battery and anything else on the very top bar. You can also hide that as well. So you need to go to info.plist file. Add a new one and add view controller-based status bar; type boolean; answer NO. Info about the .plist   So this is the CLASS for a question/answer format. Much better than just using a dictionary - I tried using that before. Object Oriented Programming (OOP) Analogy of restaurant - I've seen this before but it's a really good one. I liked Sandra's pizza one too. So classes - blue print for an object. Ok difference with method/function - method is inside a class...