Swipe gestures for iOS - great solution in LiveCode Lesson

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gjtaylor99
Posts: 75
Joined: Mon May 09, 2011 3:01 pm
Contact:

Swipe gestures for iOS - great solution in LiveCode Lesson

Post by gjtaylor99 » Wed Oct 09, 2013 7:04 pm

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.
Geoff Taylor
Image

Post Reply