title: UIImage or CGImage is preferred?
body: <p>I have a UIView with UIImageView as its subview and i need to change the image in that view while the user swipe it.</p>
  
  <p>I tried it using UIImage, but the app crashes and the memory keeps on rising. </p>
  
  <p>When I tried some googling I got to know that CGImage might be a good choice. Can someone direct me to the right track.</p>
  
  <p>Thanks</p>