I currently have a very simple app for which the only interaction is shaking the iPhone. However eventually the screen dims and auto-locks since the iPhone is not getting any touch events. I was wondering if there is a way to reset the auto-lock time-out when shaken?
I know that to disable auto-lock completely I would do this:
[[ UIApplication sharedApplication ] setIdleTimerDisabled: YES ]
but I don't really want to disable it completely; if the iPhone is legitimately not being used it should auto-lock as expected.
Thanks for your help.