I have an app with some animations which are called by timers. When one animation finishes then a timer is called to start another. If the iPhone sleeps and requires unlocking to activate it then the animations do not start. This is obviously because the timer ends whilst the app is asleep and then the function to restart an animation doesn't get called.
What I want to do is check if the animations are running and if not activate them - or maybe stop them when the app sleeps and activate them when it starts again.
I have been trying to find a method to do this but after hours of googling I can't find anything - it is completely possible I'm not searching for the right thing!
Any suggestions would be greatly appreciated?
Also is there a way of forcing the iPhone to sleep when connected to XCode?
THANKS