title: How to programmatically take a screenshot in iOS?
body: <p>How can I programmatically take a screenshot of the entire screen (iPhone) and save it to the photo library in iOS? There is nothing on the screen other than some labels and a button.</p>
  
  <p>The button is named "ScreenshotButton" that needs to trigger this.</p>
  
  <ul>
  <li>Do I still need to import QuartzCore?</li>
  <li>Where exactly would I need to place the Screenshot Function in the ViewController? </li>
  </ul>