title: How to merge 3 different image views into single uiimage in iOS
body: <p>In my app i'm having three different image views that three image views should be merged into single uiimage.
  first imageview for picking images from gallery/camera
  second imageview for frame images 
  third imageview for Overlay images(these are placed on the first image view.my issue! is while sharing i need to merge those three into single uiimage 
  while running it is only showing second image and third merging the first image is not viewing.please answer me if any one know the issue .Thanks in advance
  Here is my sharing code please help me .</p>
  
  <pre><code>[self.OverLayImgView setAlpha:0.6]; UIImage *FirstImage = ImgView.image;
  UIImage *ScndImage=self.FramesAppliedImg.image;
  UIImage *ThirdImg=self.OverLayImgView.image;
  CGSize firstImagSize=[FirstImage size];
  UIGraphicsBeginImageContext(firstImagSize);
  [FirstImage drawInRect:CGRectMake(20,20,315,315)];
  [ScndImage drawInRect:CGRectMake(0,0,355,355)];
  [ThirdImg drawInRect:CGRectMake(20, 20, 315,315)];
  UIImage *newImage=UIGraphicsGetImageFromCurrentImageContext();
  UIGraphicsEndImageContext();
  </code></pre>