Merge UIView with UIImageView before grabbing a screenshot
<p>I wish to combine the background (UIImageView) to the overlying UIView (MyView) and then take a screenshot of the merged image. I am using the code below, but the background completely covers my UIView... Any suggestion please?</p>

<pre><code>UIImageView *ViewToBeAddedAsBackground = BackgroundImageView;    
ViewToBeAddedAsBackground.frame = CGRectMake(0,0,770,410); 
[MyView addSubview:ViewToBeAddedAsBackground];    

UIGraphicsBeginImageContext(MyView.frame.size);
[MyView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *MyView_IMAGE = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(MyView_IMAGE, nil, nil, nil);
</code></pre>
