objective c - Code to make iPad unlock till content is loaded -
i runnig app , testing in device. when user clicks on button content updated.it takes time update.if ipad locked content not updated , app crashes. can on me.
is there code make ipad unlock antil content loaded.
this possible without jailbreak. xbmc official remote has feature.
it might not stop locking feature - stops dimming of screen. think you're looking for.
[uiapplication sharedapplication].idletimerdisabled = yes;
from documentation:
important: should set property if necessary , should sure reset no when need no longer exists. applications should let system turn off screen when idle timer elapses. includes audio applications. appropriate use of audio session services, playback , recording proceed uninterrupted when screen turns off. applications should disable idle timer mapping applications, games, or similar programs sporadic user interaction.
Comments
Post a Comment