Page 1 of 1

Swipe gestures for iOS - great solution in LiveCode Lesson

Posted: Wed Oct 09, 2013 7:04 pm
by gjtaylor99
I'd like to promote the section on using swipe gestures in a LiveCode tutorial lesson. The code can be pasted into your stack scripts and used almost "as is" (I just changed the destinations in the moveBack and moveForward handlers). It worked without a hitch in my iOS simulator.

Here's the link:

LiveCode Lessons > How To > LiveCode Mobile Tasks > Creating a simple stock control application for the iPad > Using swipe gestures
http://lessons.runrev.com/s/lessons/m/4 ... r-the-ipad
We want to be able to move between [records] by swiping left or right and moving through the items accordingly. LiveCode provides touchStart, touchEnd and touchMove messages allowing you to detect swipe gestures. By recording the start and end points of the touch and calculating how far the user has swiped, and it what direction you can detect and handle swipe gestures. These commands are handled on the stack script.