title: Strings and UIImages in the same Dictionary Swift
body: <p>I am quite new to Swift and Xcode. I have made a UITableView to display specific posts from instagram. Due to other changes I have made recently (to get other things to work) I need to add both UIImages and Strings to a Dictionary (which the data is then put into the table) so everything will run smoothly. For example I need the image and the caption.</p>
  
  <p>This is what I have done so far, but it doesn't seem to work.</p>
  
  <pre><code>instagramDataDictionary["image_standard"] = image as UIImage!
  </code></pre>
  
  <p>('image' is the image loaded asynchronously)</p>
  
  <pre><code>var cellImageView = UIImageView(image: allDataArray[indexPath.section]["image_standard"] as UIImage!)
  </code></pre>
  
  <p>Then I try to add the Image to the table but when I run the app nothing displays (I add the subview after the above code). Do I need to save the image in some other way? </p>
  
  <p>Thanks!</p>