title: Rotation gesture changing view frame
body: <p>What I want to achieve: I want to create a copy of selected view. 
  I have two <code>UIImageViews</code> on <code>UIView</code>. I am selecting both the views and want to clone both the views.</p>
  
  <p>Everything is working fine until I am not rotating the <code>UIImageView</code>. If am rotating the view <code>UIImageView</code> changing its frame.</p>
  
  <pre><code>UIView *viewClone = [[UIView alloc]initWithFrame:CGRectMake(fltLeadingMin, fltTopMin, fltCloneViewWidth, fltCloneViewHeight)];
  viewClone.backgroundColor = [UIColor redColor];
  
  UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc]initWithTarget:self action:@selector(handlePan:)];
  [viewClone addGestureRecognizer:panGesture];
  
  for (UIImageView *imgView in arrSelectedViews) {
  
      NSData *archivedData = [NSKeyedArchiver archivedDataWithRootObject:imgView];
      UIImageView *imgViewClone = [NSKeyedUnarchiver unarchiveObjectWithData:archivedData];
  
      imgViewClone.frame = CGRectMake(imgViewClone.frame.origin.x - viewClone.frame.origin.x, imgViewClone.frame.origin.y - viewClone.frame.origin.y, imgView.frame.size.width, imgView.frame.size.height);
      imgViewClone.backgroundColor = UIColor.blueColor;
  
      [viewClone addSubview:imgViewClone];
  }
  </code></pre>
  
  <p>Here is a screenshot of how it looks like now:</p>
  
  <p><a href="https://i.stack.imgur.com/NpGY0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NpGY0.png" alt="enter image description here"></a></p>