I currently have a application which will display the time allocated to a user to perform a certain action. Currently it is simple, using a UILabel to display the time remaining.
I would like to add a bit of polish to the interface, and display a graphical countdown, which would be more compelling to the user.
I am not sure how to accomplish this, but my theory is as follows: I know the maximum value that I count down from is 999. So I could create 3 UIImageViews to represent each digit. A timer currently updates the remaining countdown value every second, which in turn sets the UILabel to the value. I could in theory, split this string into its component digits (or loop over the strings characters), and load a 'digit' image into the corresponding UIImageView based on the digit passed in.
My questions:
Would the approach I mention be efficient?
Is it the best approach given the situation?
How could I animate the image change over? Ideally what I would like its the new image to slide in from the top of the image view, while the image it is replacing slides out from the bottom. Is this even possible?
Just to clarify, I am not looking for someone to write the code for me, just looking for a few pointers around my actual implementation.
Many thanks for taking the time to read this post.
EDIT, it appears that the post here How to animate the change of image in an UIImageView? helps me with animating the actual images. But I would still like to gain any suggestions on my proposed implementation.