title: How to disable/enable the sleep mode programmatically in iOS?
body: <p>I have an app that must stay awake until the end of a countdown but it will go into 'sleep mode' whenever it reaches the allocated time to sleep.</p>
  
  <p>In my app, I have the option to postpone sleep, so users can disable/enable it.</p>
  
  <p>How do I do it programmatically?</p>