Posts

Showing posts with the label outlets

*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 2* F1 Quiz - part 1

Image
It's Christmas Eve and time to code! To think, a year ago, I was plodding along with some eBook, blindly convincing myself that I was on a steady road to coding greatness. Really, it was from June where I made the decision to start again, humbling as that may seem. It would have been comforting to have completed endless 'beginner' courses but branching out and applying the theory is the key thing, which brings us to this entry. Yes, my second Xcode OWN project! I thought about doing an educational one, as there is certainly a lot of scope and relevance for that, being a teacher and all. However, making a quiz makes sense, for various reasons.  First off, I have made this before through Angela's excellent tutorial. No offence to Sandra, but hers is not even close to the elegance and effectiveness of Angela's project. The one thing to take from Sandra is the stack views. Definitely something I will use from now on. This is one of the great things about learning from...