0

I was surprised to find that I couldn't find another question like this. What I've done is made a uiimage moveable (by dragging it) and I would like another image to copy it's movements. Not go to the same position, but copy the movement. I had a go at this myself but I can't seem to get it right. I would appreciate some help. And go easy on me because I'm a very new developer :) Thanks.

edit: I'll try to explain it a little better... If image 1 is dragged to the left, I want image 2 to look as if its part of image 1. They move in unison.

Invalid Memory
  • 717
  • 7
  • 23

1 Answers1

0

You can track the frame of the Imageview within which you have the image. For that you can use KVO. Its already explained in https://stackoverflow.com/a/4874289/1029360

Community
  • 1
  • 1
Adithya
  • 4,545
  • 3
  • 25
  • 28
  • Thanks for the help, but I don't understand how this can be used to achieve what I'm trying to do. – Invalid Memory Jun 05 '13 at 10:24
  • @user2329585 Using the method I have mentioned above, you can get the frame of the first image imageview. You can use the frame obtained to position your second image imageview. I hope that's what you are looking for? – Adithya Jun 05 '13 at 10:34
  • Yes, that's pretty much what I'm looking for. I wasn't thinking straight, thanks for your help. :) – Invalid Memory Jun 05 '13 at 10:45