Log in or register to post comments

pinch

December 13, 2012 - 1:24am #1

Hi,

I'm trying to scale the teapot in the image target using the pinch gesture. Any suggestions?

Thanks

Thanks for posting these links

December 17, 2012 - 2:56am #7

Very helpful :)

N

Hi, I use apple gesture

December 17, 2012 - 1:06am #6

Gestures

December 14, 2012 - 1:32am #5

Great to hear!

Did you manage to find a way to use Apple's gesture recognizer or was it third party?

N

pinch

December 13, 2012 - 8:02am #4

Hi Nalins,

I resolved using the gestures recognizer instead of the touches began.

 

thank you

pinch

December 13, 2012 - 3:10am #3

Hi NaliS,

in the sample there is a call to a touchbegan function but I can't find a recognizer for this kind of event in the code.

I have read the tutorial and I can't understand how and where I have to add the pinch gesture recognizer in the sample code.

Can you please give more suggestions?

 

Thanks

 

pinch

December 13, 2012 - 2:35am #2

If you look in the overlayviewcontroller then you can see how it checks for the user touching / tapping the screen.

Essentially you can look how others are using gesture recognition and apply it here, so that it affects the augmentation scale and rotation.

Here is a pretty good tutorial on this topic, though you will have to do some work to apply it to the sample code:

http://www.raywenderlich.com/6567/uigesturerecognizer-tutorial-in-ios-5-pinches-pans-and-more

HTH

N

Log in or register to post comments