An app a month: February (Score Tracker with Core Data)

My plan was to make a simple Apple Watch app. But it was announced that Parse was shutting down, and I had always used Parse for all of my data. It was probably about time I learned how to use Core Data properly (even though I spent a large portion of time setting up Parse Server on a DigitalOcean droplet). So here we are.

The home screen (filled with my test scores)

Core Data could certainly be made easier to use. Having to create a managed context, then declare your entity, then the object and finally you can set your values. This could really be done in two lines of code, the declaration of the entity and the set values.

The add entry screen. Currently showing the giants are up 3:1 after 12 seconds.

When the user adds a score, it provides a stopwatch (minutes:seconds), home and away team entry fields, and an add score button. The data that gets saved is the home team name, the away team name, and their scores.

By tapping on one of the entries in the table view, you can view more information

I also added a detail screen accesable by tapping on the entry you wish to see more information about.

If I had more time (or if you wanted to add onto my code, link at bottom of page) I would add:

  • A subtract point button
  • Save the time on the stopwatch
  • When finished typing, automatically set the names

And, of course the code for this project can be found on my GitHub repo