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

scaling of a view in iOS

I have three UIViews (A, B, C) where A contains B and C. I want to be able to scale view B, by detecting a Pinch gesture with a UIPinchGestureRecognizer and then using CGAffineTransformScale to scale view B. However, when I scale B it scales OK,…
0
votes
2 answers

Image is stretching while Pinch

I'm getting images from remote server and displaying in UIImageView then doing pinch gesture to this imageview. But when i pinching image, i'm getting image stretching. It's loosing original resolution and quality. mmageView=[[UIImageView…
0
votes
0 answers

How do I clear the event queue for a UIGestureRecognizer?

I have a UIView that receives pinch gestures. When I pinch it, it seems like the pinch events queue up, so I still receive pinch events after I already stopped pinching. Can I clear the event queue? If yes, how? If no, what can I do to make sure my…
Kevin
  • 2,739
  • 33
  • 57
0
votes
0 answers

What's the equivalent of convertToNodeSpace in Sprite Kit

Let me first introduce you to the node hierarchy: SKView->SKScene->SKNode I've added a UIPinchGestureRecognizer to the view so that I can zoom in and out my content. Here's the code in SKScene…
Mikayil Abdullayev
  • 12,117
  • 26
  • 122
  • 206
0
votes
1 answer

Pass certain gestures to a uiscrollview and others to its contents?

I'm sorry for being such a beginner. I have watched a number of UIGestureRecognizer tutorials and seen some very helpful answers on SO, but making this unique combo of gestures work is evading me. Here are the details. Thanks in advance for the…
0
votes
1 answer

Core Plot: Pinch to change x axis range

So I have a simple line XY Graph with integer values on the Y axis and dates on the X axis. What I would be like to be able to do is do a horizontal two-finger pinch and adjust the range dynamically. Eg, pinching in would give you a bigger range…
Sam Jarman
  • 7,277
  • 15
  • 55
  • 100
0
votes
2 answers

rotating moving scaling of UIImageView moving inversly after rotating by 180*

Here is my code for moving,scaling and rotating the UIImageView all work fine but the issue is when we rotate the ImageView it rotates but after then it move inversely like i am dragging toward right but the ImageView is going left cant we get the…
0
votes
1 answer

three finger pinch with custom uigesture on uiscrollview

I have a uiscroll that allows pinching, panning and single/doubletap functionality. I would like to add a three finger pinch in/out to trigger something else in my app. Pinch in and do this, pinch out and do that. The builtin scroll pinch allows 2…
malaki1974
  • 1,605
  • 3
  • 16
  • 32
0
votes
1 answer

GLKView zooming over Navigation Bar

I have a GLKView (OpenGL ES2.0) between a navigation bar on the top and a tool bar at the bottom of my iOS app window. I have implemented pinch zoom using UIPinchGestureRecognizer but when I zoom out a good extent, my view runs over the top…
0
votes
2 answers

Conflicting UIPanGestureRecognizer (3 fingers) and UIPinchGestureRecognizer

I'm adding both a UIPanGestureRecognizer and UIPinchGestureRecognizer to the same view. This typically would not cause any issues, but the requirement for 3 fingers with my UIPanGestureRecognizer is causing problems: UIPinchGestureRecognizer…
0
votes
1 answer

UiTouches on scroll view not working, How to set zoom in pain app

I have implemented a paint application using UITouches by following RayWenderlich tutorial Make A Simple Drawing App with UIKit I completed my paint successfully. But *I need to set zoomin and zoom out functionalitie*s, So that i added my ImageViews…
0
votes
1 answer

How to limit panning and zooming in-out area?

in my app i am having one image view which contains the picture of user taken from either camera or phone library(album).And the user is allowed to select some product from a list of products for trying on his picture. I am able to do all this stuff…
Ujjwal
  • 189
  • 2
  • 11
0
votes
2 answers

iOS. Make UIPinchGestureRecognizer dominant over UITapGestureRecognizer?

it means user can't pan and pinch simultaneously and pinch gesture stops pan one. - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer { …
0
votes
1 answer

Pinchgesture not working for small images

Im using GestureRecognizer delegate for pinch,pan,rotate,longpress for images. I used UIPinchGestureRecognizer delegate for pinching. But, when i pinch zoomIn it doesn't have any problem. When i zoomOut certain level the images are small, and i…
0
votes
1 answer

Image gone certain Zoomout level

Im using GestureRecognizer delegate for pinching for images. I used UIPinchGestureRecognizer delegate for pinching. But, when i pinch zoomIn it doesn't have any problem. When i zoomOut certain level the images are gone from…