开发者

iOS custom idle timer [duplicate]

This ques开发者_高级运维tion already has answers here: iPhone: Detecting user inactivity/idle time since last screen touch (10 answers) Closed 5 years ago.

In an iOS enterprise app i need to implement an idle timeout. The application's idleTimerDisabled property is set to yes, that's not what I want.

It's a journal type of application for an exhibition, in which the app should jump back to the first page after a specific time. Is there some way that doesn't need me to adjust each touch/gesture callback with a function that resets the timer?


You can override UIApplication::sendEvent to reset the timer, e.g. see the accepted answer here:

iPhone: Detecting user inactivity/idle time since last screen touch

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜