If the screen isn’t touched after a time period an iPhone will go to sleep.  Use this to disable this function:


	//Disable device auto sleep timer
	[[UIApplication sharedApplication] setIdleTimerDisabled:YES];

Comments