0

I want do a demo, this move imageview1 to imageview2, The rule of move is: A point in imageview1, B point in imageview2, I want to do point A move to Point B, also imageview1 moved.

if imageview1 can be handlePinchGesture handlePanGesture handleRotateGesture what I do? imageview1.frame howto get?

self.hairImageView.transform = CGAffineTransformTranslate(self.hairImageView.transform, left_moved, hit_moved);

This imageview1 continued up up up,not in correct point, imageview1.frame is also wrong.

SurvivalMachine
  • 7,946
  • 15
  • 57
  • 87
yin zhiwei
  • 23
  • 1
  • 4
  • you can use touch delegates for moving view within superview or simply use PanGesture to move from one location to another..look at http://www.ioscreator.com/tutorials/dragging-views-with-gestures http://stackoverflow.com/questions/4980534/dragging-uiview-under-finger – Gagan_iOS Aug 19 '16 at 12:09
  • this is very good , but this ; layer = > why this UIImageView not in correct point , this imageview of data is correct ,how to change this view? – yin zhiwei Aug 20 '16 at 03:38
  • my idea is : First calculate the position after move , Your idea is the opposite , so how to move to right position is my care – yin zhiwei Aug 22 '16 at 02:59

0 Answers0