Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Tom Coomer1,331 Points
Moving an image whilst touching screen
I currently have the code to move and image view along the Y axis by +1 each time the button is pressed. However I would like the image view to continue moving down until the user lifts their finger from the screen. Thanks.
Dayton Pruet17,912 Points
Have you tried checking for the Touch Cancel or Touch Down events?
Maybe run a loop until the Touch Cancel method is called.