ios4 - How to manage screen displaying time in iphone for my app? -
i creating iphone application. in needed keep screen on till 30 mins. if user don't perform task within time light of device in can see scree may down untill user again tap. no matter if light goes dimmed within 30 min should not down? media player if user don't tap on screen can see screen coz moview playing. other screen if user don't interact display light down , user need tap on screen.
is there way in iphone sdk.
please me out.
thanks
first of disable dimming use
[uiapplication sharedapplication].idletimerdisabled = yes;
if want set appropriate amount of time can create nstimer time interval of 30 mins (30*60 sec). when timer fires set
[uiapplication sharedapplication].idletimerdisabled = no;
if user touches screen invalidate current timer , start new one.
Comments
Post a Comment