title: Merge and save two UIImageViews
body: <p>My project has two <code>UIImages</code>, one named <code>imageView</code> and one named <code>Birdie</code>.</p>
  
  <pre><code>- (UIImage *)addImage:(UIImage *)imageView toImage:(UIImage *)Birdie {
      UIGraphicsBeginImageContext(imageView.size);
  
      // Draw image1
      [imageView drawInRect:CGRectMake(0, 0, imageView.size.width, imageView.size.height)];
  
      // Draw image2
      [Birdie drawInRect:CGRectMake(0, 0, Birdie.size.width, Birdie.size.height)];
  
      UIImage *resultingImage = UIGraphicsGetImageFromCurrentImageContext();
  
      UIGraphicsEndImageContext();
  
      return resultingImage;
  }
  
  -(void)captureScreen{
      UIImageWriteToSavedPhotosAlbum(resultingImage, nil, nil, nil);
  }
  </code></pre>
  
  <p>This is my code, the <code>captureScreen</code> button is to save the image. It's not working because <code>resultingImage</code> is undeclared, but I'm pretty new to Xcode so I don't know how to fix this.</p>
  
  <p>Many thanks in advance!</p>