title: How to rotate image by 90 degrees and save
body: <p>I want to take image from documents directory then rotate and reflect the changes to the same image file in documents directory.</p>
  
  <p>I am getting image by using imagepath like this</p>
  
  <pre><code>[UIImage imageWithContentsOfFile:imgURL];
  </code></pre>
  
  <p>I want to rotate this image by 90 degrees and save at the same path with same image name.</p>