StroopTest OVERALL PROGRAM DESIGN

Settings Constants are kept in STSettings.h

Classes

  • STScene: keeps track of the card, which selection buttons are appropriate, the score so far, and the elapsed time.
  • Card: keeps a Color, plus an NSArray of randomly-ordered color names
  • STScores: Deprecated: replaced by STScoreVC and CoreData

STViewController.m is where everything starts

  • Creates a new "Scene"
  • When you press the start button, start an NSTimer that
  • The Start button simultaneously kicks off a modal segue to STSceneVC
  • prepareForSegue sends a STTest object, plus a STScene object to STSceneVC

STSceneVC shows the card

STSceneVC.h defines , which lets the delegate know when the score has increased.

STScoreVC displays a TableView of scores kept in a CoreData

Change Log

Version 1.41.1 (Jul 2020)

  • Now works on iOS 13

Version 1.41 (May2015)

  • fixed crash in instructions page caused by incorrect STColors

Version 1.4 (May2015)

  • Recompiled for iOS 8.3
  • STColors is now the main color object (instead of switching between UIColor and STColors)

Version 1.3 (Aug2014)

  • Instructions page uses real examples.

Version 1.2 (Feb2014)

  • Results page looks much better: uses custom tableviewcell labels.
  • Instructions now uses unwind segue
  • All results are saved to a much more efficient Core Data file
  • Results are also saved to a real CSV file, easily readable in Excel

Version 1.1 (June2013)

  • Shipped in Feb 2014
  • UX overhauled for iOS 7
  • Results (in JSON form) can be transfered to iTunes for processing on a PC or Mac.