title: How do i save an image in core data then retrieve it? Using swift
body: <p>I don't want to use <code>NSUserDefaults</code>, so how do I save an image in core data then retrieve it? </p>
  
  <p>My image is in this variable.</p>
  
  <pre><code>var image:UIIMage = image1
  </code></pre>
  
  <p>Can you please give me some sample code to do this?</p>