0

Thanks in advance.

I want to get the pinch effect to an image means i want to change the shape of an image when i perform pinching on an image. I don't know is it possible or not, if it is possible can any one help me to do it using objective c in iphone.

Sandy_ios
  • 669
  • 1
  • 11
  • 25

3 Answers3

1

you need to associate a pinch gesture (type of UIPinchGestureRecognizer)with your UIImageView .

Check the below blog tutorial with sample code

Working with UIGesturerecognizer

Sample code from Apple

Jhaliya - Praveen Sharma
  • 31,697
  • 9
  • 72
  • 76
  • Thanks for ur response. Sorry if u r not clear with my question.I want a pinch effect to an image not to an image view like http://www.abcpdf.com/helpie/source/2-effects/pinch.htm, means not resizing of a view with pinch gesture. – Sandy_ios May 17 '11 at 13:23
1

Actually your question itself is a big concept..Atleast you must have tried something to achieve it..we can help you out with the modules..

for a jump start -

study about touchesBegan:,touchesMoved:,and touchesEnded methods.

Instead of using Gesture Recogniser, try to make your own pinch effect by the above methods..

U'll get much more flexibility to control the touch points.

Hope it helps.. :)

Shrey
  • 1,959
  • 2
  • 21
  • 44
0

You can find help here : Limit maximum scale for scaling image with pinch gesture in IOS

Basically, using a gesture, you get a factor that you use to scale your image.

Community
  • 1
  • 1
rockeye
  • 2,765
  • 2
  • 30
  • 44
  • Thanks for ur response. Sorry if u r not clear with my question.I want a pinch effect to an image not to an image view like http://www.abcpdf.com/helpie/source/2-effects/pinch.htm, means not resizing of a view with pinch gesture. – Sandy_ios May 17 '11 at 13:23