title: Getting image on UIImageView
body: <p>I'm currently making an app where the user takes a photo or select it from an album, then an overlay is placed over the image. The user can then scale, rotate and save the image.</p>
  
  <p>For now, I have 2 xib files. The first one has thumbnails for overlay pictures to choose from.  Clicking on one of them goes to another xib file where I have 2 UIImageViews. One for the overlay and one for the camera. Previously I just used interface builder to set an image at the attributes. But if have 20 overlays, it means I have to use 20 xibs. So I thought the best way is to add pictures through code so I can use this 2nd xib as a template for the overlays. Here's when I'm stuck. When I click on a thumbnail in the 1st xib file, how do tell the 2nd xib file to store an overlay in the UIImageView?</p>
  
  <p>For the camera, I'm using </p>
  
  <pre><code>imageView.image = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
  </code></pre>
  
  <p>and it works fine. I can even save it to the album. I thought I could use the code below for the overlays but that didn't work. </p>
  
  <pre><code>UIImage *image = [UIImage imageNamed: @"char1.png"];
  </code></pre>
  
  <p>Hope someone can help. Thanks very much.</p>
  
  <p>Hakimo</p>