Questions tagged [uipinchgesturerecognizer]

UIPinchGestureRecognizer is a concrete subclass of UIGestureRecognizer that looks for pinching gestures involving two touches.

When the user moves the two fingers toward each other, the conventional meaning is zoom-out; when the user moves the two fingers away from each other, the conventional meaning is zoom-in.

Pinching is a continuous gesture. The gesture begins (UIGestureRecognizerStateBegan) when the two touches have moved enough to be considered a pinch gesture. The gesture changes (UIGestureRecognizerStateChanged) when a finger moves (with both fingers remaining pressed). The gesture ends (UIGestureRecognizerStateEnded) when both fingers lift from the view.

Whole document - UIPinchGestureRecognizer

248 questions
0
votes
1 answer

Subview resize to full screen

I have subview inside UINavigationcontroller rootview, what is the best way to animate and resize it to full screen? i'm using UIPinchGestureRecognizer for this subview and [UIView animateWithDuration] method, but the size of view doesn't change.
taffarel
  • 4,015
  • 4
  • 33
  • 61
0
votes
2 answers

UIPinchGestureRecognizer not called

I have a single view on my iOS application, with a mapView in it. When adding a tap or long press recognizer, the events are properly called. But not with the pinch event... UIPinchGestureRecognizer…
Laurent Crivello
  • 3,809
  • 6
  • 45
  • 89
0
votes
2 answers

UIPinchGestureRecognizer not working in xcode 4.3.2

Using xCode 4.3.2, I have the following code in initWithFrame in my view.m: UIPinchGestureRecognizer *recognizer = [[UIPinchGestureRecognizer alloc] initWithTarget: self action: @selector(pinch:) ]; oldScale = recognizer.scale; …
0
votes
1 answer

my app is very slow while doing pinch gesture recognizer

I'm doing an iPhone app in iOS 5. In that I'm expanding and reloading the uitableview while recognizing the pinch gesture. It works great in simulator. But in device it works very slow. For example in device after the UIGestureRecognizerStateEnded…
Jirune
  • 2,310
  • 3
  • 21
  • 19
0
votes
1 answer

Using 2 UIPinchGestureRecognizers on the same UIImageView

I have an image view that I want to pinch to rescale without keeping the aspect ratio. In order to do this, I thought it might be feasible to either: Use two pinch gesture recognisers, one that stretches horizontally, one that does so…
Sorin Cioban
  • 2,237
  • 6
  • 30
  • 36
-1
votes
1 answer

Pan gesture view with uncrossable boarder

To easy understand my question without a picture: I have self.view in bgcolor: black I have view1 the same big as self.view in bgcolor: white. I have pinch and pan gesture in view1. So what I need, is to zoom and slide a view around, but I should…
-2
votes
2 answers

UIView get tap and swipe gestures but set it to ignore pinch to zoom gesture

I have UIScrollView and I added UIView over it and I added gesture recognizers to UIView. I added tap gesture and swipe gestures to UIView and it works fine. But when user use pinch then I want to be ignore by UIView and UIScrollView should react to…
-4
votes
1 answer

How many point move in pinch action?

Using the following method to detect how many point move in pinch action (using UIPinchGestureRecognizer), I have to get the value of point move the view in iOS device screen. override func touchesBegan(_ touches: Set, with event: UIEvent?)…
p t
  • 3
  • 5
1 2 3
16
17