Design question - displaying time based events
I have an array of events that occurred in the past, each event has an associated time. On average, there is only a few seconds between each event.
I want to create a "replay" capability where the user would hit "Replay" and a scrolling list of events would appear, "honoring" the timing in the array. i.e. Suppose there was 2 seconds between event 1 and event 2, and 4 seconds between event 2 ad 3.
When replaying, the first event info would appear, the app would wait 2 seconds and show event 2 and then would wait 4 seconds to display event 3.
Some basic questions:
- UITable view appropriate or the list style display?
- Can I simple "sleep()" the code? Seems like I may want to look into a more event or notification driven model?
Just wanna try to start with a good design, so I don't get 80% done and have to rip it out and start over :-)
_mike
|