gesture-recognition

How to enable swipe gesture for a UITextView

How do I enable the swipe gesture recognition for a UITextView? This is my code and the event attach to it is not firing. It works for taps just not for swipes. // Add swipe support for easy textview content clean up UISwipeGestureRecognizer *swipe = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(eraseTextWithSw...

Gesture recognizer, mapType and Overlays interfere with each other?

I have a map view to which I added a long press gesture recognizer and Overlays. I came across a strange behavior. In case mapType is set to Hybrid and there is no gesture recognizer, the Overlay views are displayed but the map is of type standard. In case mapType is set to Hybrid and the gesture recognizer is added to the view, the O...

iphone slide movement recognizer

Hi, I'm developing a new app and i need to implement a functionality used very often in many apps. I want to implement the functions "next page" / "previous page" with a sliding gesture respectively from left to right for the "next page" case and from right to left in the other. I've seen something about GestureRecognizer that maybe can ...

iOS - detect when more than one finger is on the screen

I'm looking for the best way to detect more than one finger on the screen at time. I'm not detecting taps or pinching, just the fact that more than one touch is happening. There don't seem to be any gesture recognizers for that. What's the best way? ...

How to differentiate between a fling and a touch?

I have a ListView inside of a ViewFlipper which I am flipping when the user swipes across the screen. Clicking on a ListView will open the browser. Sometimes when I am swiping, it gets detected as a touch on the ListView and will open the browser. This can be annoying. How can I prevent this from happening? class MyGestureDetector exten...

How to learn xInput and gesture programming in Linux (GTK+)

Ramble: I have been goggling for the past ~week trying to get information on tablet programming for Linux. I am currently a student tasked with making a tablet application (mobile but tablet is the preferred device). I am allowed to program with Linux however the class instruction is based on Microsoft XP tablet input "Inking." I howe...

Long press on UITableView

Hi, I would like to handle a long press on a UITableViewCell to print a "quick access menu". Does someone already did this ? Particularly the gesture recognize on UITableView ? ...

Android Gesture Directions

Hello all. I'm working on an app that will (hopefully) be taking advantage of Android's gestures (as described here: http://developer.android.com/resources/articles/gestures.html) Before I dive in though, I'm trying to find out if gestures can take the direction they were drawn into account. Unfortunately I haven't found this informat...

Using UITapGestureRecognizer

New to iPhone dev. I have a view which contains a UIScrollView which contains a UIImageView. I added a (double) tap gesture recognizer on the image view which makes an alert box open. For some reason, and I'm sure I'm just retarded, it opens 3 times. Here's my code: - (void)viewDidLoad { scrollView.delegate = self; UIImage* i...

Actionscript 3.0 gesture tracking

I am creating an interactive animation of a cat you can stroke, rub, poke etc. I have implemented some basic functions in an attempt to recognize the different gestures, I am using the mouse down and mouse up events to track the duration and distance of the click. My problem with this is that the 'distance' is measured from the start p...

Problem with conflicts bettwen UIGestureRecognizer and in iPhone

Hi. I'm working in small app for iPhone which uses openGL. The app is supossed to : Move around the screen with a moving touch. Zoom in/Out by tapping I'm overwritting this functions to handle the coordinates of the touchs and move around the screen with my finger, with success, working perfectly: (void)touchesBegan:(NSSet *)touch...

Detecting Simultaneous Button Presses and other Gestures, Shakes and Tilts - Cocos2d & iPhone.

I am writing an app for the iPhone using cocos2d where I have 4 Sprites that are buttons. I want to allow and respond to the following (allowing the user 3 seconds to apply his input before timing out): -- Single button presses (I have this part working). -- Pressing of more than 1 button at at the same time (each combination would have...

ScaleGestureDetector not detecting gesture end

I have hooked in a ScaleGestureDetector to an OnTouchListener as instructed in Android documentation. For some reason the ScaleGestureDetector does not always detect end of a pinch gesture. This happens mostly when pinching fast from large to small. The effect is that after I have released both fingers the detector does not fire the ge...