title: ios idle time or put device to sleep
body: <p>I have a problem to which I can't seem to find any leads, any help will be much appreciated. I want in my ios app to put a device to sleep after a specific time. I know ipads/iphones automatically go to sleep on inactivity however I want my app to do this. Is there a way to achieve this.</p>
  
  <p>Also can we determine the system idle time value and how much time is left until device goes to sleep?</p>
  
  <p>Please let me know if I am unable to explain the question.</p>
  
  <p>Regards</p>
  
  <p>Yasir</p>