Touch and Drag from one view to another
Posted
by
jollyCocoa
on Stack Overflow
See other posts from Stack Overflow
or by jollyCocoa
Published on 2010-03-24T09:17:14Z
Indexed on
2011/01/07
6:53 UTC
Read the original article
Hit count: 231
Hi all!
I've search for some clues on this problem without much success. Hope someone can kick me in the right direction.
I am prototyping a couple of apps where I need to design my own GUI. The GUI is made up by two separated UIViews where one of them contains a small thumb of an image. I want to be able to drag this thumb from the first view to the other. Simple as that! But I haven't figured out how this is done. Here is the exact flow I am looking for:
- touch the thumb
- animate a small enlargement of the thumb
- drag the thumb to the other UIView
- drop the thumb
- animate a shrink of the thumb
Not particularly strange, but the thumb remains related to the first view all the time. I've tried to move the thumb via the first views superview and then back to the second view, but with no luck.
© Stack Overflow or respective owner