I’ve got a sports timing app project.
Over 3 periods you record time spent in offense versus defensive zones.
The “show” segues (navigation controller) guide you from period 1 to 3, then a results page (arrays populating an outlet collection).
HOWEVER: When I navigate backwards (maybe there was a time out or other when the clock was stopped but I wanted to go look around) the clock values are there, but any changes to the clocks don’t get passed to the results VC.
Also, if I go backwards over a period (let’s say from 3 … skip 2… go right to 1st), and THEN go back to period 2—the period 2 clock is erased.
Is this a case where I need to be unwinding every time I move backwards?
I thought I was being clever by having the last line of each timer() writing the clock’s output to the array on the results page so that every time you’re physically using the clock you are updating the results page.
I guess not.