Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a high-level gestures library for iPhone development?

The iPhone platform has a number of common gesture idioms. For example, there are taps, pinches, and swipes, each with varying number of fingers. But when you're developing an app, it's up to you to implement these things based on low-level information about the number and locations of touches. It seems like this is a prime candidate for a library. You would register a delegate, set some parameters like multi-tap interval and swipe threshold, and get calls like swipeStarted/Ended, pinchStarted/Ended, multiTap, etc. Does such a library exist?

like image 233
n8gray Avatar asked May 25 '09 17:05

n8gray


People also ask

What is apple gestures?

Gesture, swipe, and press to navigate your iPhone 13 and other Face ID models. Use gestures on your iPhone with Face ID to quickly navigate, multitask, adjust settings, and access all the things you do most. Learn which iPhone models have Face ID.


1 Answers

I've set up just such a project. It's not a library, but it is full of sample code for pinch/stretch, tap and hold, etc.

Blog:

http://6tringle.com/blog/2009/TouchSampleCode.html

Github:

http://github.com/kailoa/6tringle-touchsamplecode/tree/master

like image 93
amattn Avatar answered Oct 05 '22 15:10

amattn