How can I create an iPhone in-app screen-saver?
E.g:
After 30 seconds the app hasn’t been used a “screen-saver” starts. Where screen saver is a movie, a photo slideshow etc.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will want to count 30 seconds from any user interaction in this case, so I would suggest having a global
NSTimercreated in you app delegate that creates and makes prominent your screen saver view if it reaches 30 seconds.Monitor for touch events and view rotations – if these happen, invalidate your timer and create a new one.
If you don’t like the ‘create/destroy’ aspect of this, you could log a ‘last input time’ from any touch/rotate event and your timer can compare this to the current time each tick.