*Xcode Project Entry* Letters in a Word Part 1
So here is the first (well, technically not quite first - Yahtzee - entry for my own stand-alone project!). The idea with these is that I will work on something separate to whatever I'm learning about from Udemy/other course. The first one is actually a really good, potentially unique idea. To be honest, it's more something that is important to my girlfriend - Cath. Cath is ridiculously quick and accurate at working out the number of letters in words! Yes very specific! But if I can get it to work, it would be a neat Christmas present...
Before going headfirst into the actual Xcode project, something I picked up from Ray Wenderlich was to make a note of EVERYTHING needed. So let's do that...
On the view of the app
Label to display random words
A number pad to type in answer for how many letters are in the word
A timer - from 5 seconds to 0 each time
A scoring system for tracking
Scoring system to link to timer (potentially!)
The model (code) of the app
An array of words - this is easy enough; can be updated too!
A randomising way so a different word is displayed each time
Functions to calculate the score each time and total score
Functions to update question number etc
Function for the actual stopwatch etc
OK so there are clearly some easier and harder bits here! Let's break down what is needed, in order:
1. Get the label which will display the word each time
2. Add in labels for score and question number
3. Create array of random words
4. Randomised way of displaying words - part of the array and then a function
5. Functions for updating the question number and then start over etc.
6. Timer - look up code for this!
7. Number pad use - again, look up!
There will be more, no doubt, but it's a good starting point. The idea of creating a brand new app, from scratch, is exciting!
Start Time -20:06
OK, time to open Xcode...
Signed in with the details again - Apple ID had changed. Right, so start with the labels..
OK, it took me a while to find where the object library had gone! It's under a new sub menu along the top. Fine now I've got it, but confusing as hell!

So all main layout done! I need to do the constraints at some point but will come back to that.
Stopped at 20:25 (19 minutes so far)
So a good start! I will work on the actual code next time!
*This was something I worked on several days ago but didn't actually post!
Before going headfirst into the actual Xcode project, something I picked up from Ray Wenderlich was to make a note of EVERYTHING needed. So let's do that...
On the view of the app
Label to display random words
A number pad to type in answer for how many letters are in the word
A timer - from 5 seconds to 0 each time
A scoring system for tracking
Scoring system to link to timer (potentially!)
The model (code) of the app
An array of words - this is easy enough; can be updated too!
A randomising way so a different word is displayed each time
Functions to calculate the score each time and total score
Functions to update question number etc
Function for the actual stopwatch etc
OK so there are clearly some easier and harder bits here! Let's break down what is needed, in order:
1. Get the label which will display the word each time
2. Add in labels for score and question number
3. Create array of random words
4. Randomised way of displaying words - part of the array and then a function
5. Functions for updating the question number and then start over etc.
6. Timer - look up code for this!
7. Number pad use - again, look up!
There will be more, no doubt, but it's a good starting point. The idea of creating a brand new app, from scratch, is exciting!
Start Time -20:06
OK, time to open Xcode...
Signed in with the details again - Apple ID had changed. Right, so start with the labels..
OK, it took me a while to find where the object library had gone! It's under a new sub menu along the top. Fine now I've got it, but confusing as hell!

So all main layout done! I need to do the constraints at some point but will come back to that.
Stopped at 20:25 (19 minutes so far)
So a good start! I will work on the actual code next time!
*This was something I worked on several days ago but didn't actually post!
Comments
Post a Comment