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

Changing UIScrollView pinch zoom speed

I would like to decrease the zooming speed behavior of a UIScrollView. I've tried the solutions given in this two answers: Answer 1, Answer 2, but I'm not getting the expected results. This is my implementation of answer 2: -…
guardabrazo
  • 1,219
  • 1
  • 13
  • 26
0
votes
1 answer

On pinching the uiimageView Quality of image is low

Below Code works perfect but when pinching the image quality of image is not good.I checked many post but didn't find any solutions. Here I am not using the scrollview,want the solution without Scrollview.Help me. Here is My Code : …
0
votes
1 answer

The movement of UIImageView lags

I'm making the trim editor for a waveform, and the movement lags, but only sometimes. First I'll run the app, and it works perfectly. This is what I want to happen: https://www.youtube.com/watch?v=_JaJBMR07Vw Then I'll run it again, without…
0
votes
1 answer

Variable increases in value as though in a loop

EDIT: Sorry, I found the issue, which was something happening in another class that wasn't available here. Thanks to all who considered the question. Original: This may be a noob programmer element I'm overlooking, but I've got a variable increasing…
MScottWaller
  • 3,321
  • 2
  • 24
  • 47
0
votes
1 answer

scaling image on pinch recognzer gesture IOS

i am using a pinch gesture and scroll view to zoom the image in image view . pinch and zoom works fine , but I need to print the pinch zoom scale which is how much scale the image is zoomed(i.e: 1 or or 3) i tried everything , please help to…
vijay
  • 3
  • 2
0
votes
1 answer

UIPinchGestureRecognizer only for pinching out

I'm trying to create a UIPinchGestureRecognizer that fails if the user pinches out (moves there fingers apart). I know there is a really easy way to do this by just taking the scale of t he recogniser in the action method and if it is larger than 1,…
0
votes
0 answers

CGRectmake would mess up with the y and height values

Here is the problem. I have searched and tried in the past few days and staring at those few lines of code with no luck. Any help would be appreciated! I am trying to zoom with a pinch gesture and it works fine until I rotate it first, then pich to…
0
votes
1 answer

Pinch Gesture with image sequence iOS

Is there a way to play through a sequence of images using the Pinch Gesture tool in XCode? If so, how? Any help will be greatly appreciated! :) Dave.
0
votes
1 answer

Text alignment on UITextView after pinch recognizer

My problem is: after use UIPinchGestureRecognizer, the UiTextView loses the text alignment. It is showed in next pictures. UITextView before resize UITextView after resize - Here is written: "StackOverFlow" And my code is: - (void)…
IamInTrouble
  • 67
  • 1
  • 7
0
votes
1 answer

Swift: iphone simulator pinch gesture not working?

So I dragged a pinch gesture recognizer into my storyboard and hooked that up to an IBAction to feed an image into an ImageView when the user does the pinch motion. However when I run the simulator and do the pinch motion with the option key and…
blue
  • 7,175
  • 16
  • 81
  • 179
0
votes
1 answer

how to use UIPinchGestureRecognisor in iOS and test on Simulator

Using my little knowledge of iOS trying to test Zoom function on a ImageView, i dont want to use scrollView so tried with UIPinchGestureRecognisor. it may be my fault on testing it on simulator, i am trying to test using alt key and mouse…
0
votes
1 answer

Pinch gesture not applied to UILabel but applied to UIView

I am just trying out pinch gesture on UILabel but it's not working. When I applied the same to UIView it works. Below is my code: in viewDidLoad UIPinchGestureRecognizer *pinchLabel = [[UIPinchGestureRecognizer alloc] initWithTarget:self…
z22
  • 10,013
  • 17
  • 70
  • 126
0
votes
1 answer

Text blurs of UILabel on applying Pinch Gesture

I am resizing UILabel with UIPinchGestureRecognizer but also text with label blurs with pinching. Please help. I am using following code for pinching label. -(void)handlePinchGesture:(UIPinchGestureRecognizer *)pinchGesture { float scale =…
0
votes
2 answers

Gesture Recognizer Pinch and Pan at same pic - loosing centre for pinching

My problem is that I can't use Pinch and Pan( both functions work perfectly separate. but if I move pic - zooming have the wrong centre anchor (between 2 fingers) code: //fullScreenImage is UIImageView that i would like to…
0
votes
1 answer

Resolve multigesture conflicts for moving an object

I'm having a rectangle (derived from UIView). This rectangle has an attached UITapGestureRecognizer, UIPanGestureRecognizer, UIPinchGestureRecognizer and an UIRotationGestureRecognizer. These gesture recognizers are used to move the view, zoom it…