ios - How to simulate "pinch out" gesture programmatically? -


i developing ios app.

i add uipinchgesturerecognizer listen pinch out action.

[[self view]addgesturerecognizer:[[uipinchgesturerecognizer alloc] initwithtarget:self action:@selector(handlepinchoutgesture:)]];  -(void)handlepinchoutgesture:(uipinchgesturerecognizer*)recognizer {     if (recognizer.state == uigesturerecognizerstatebegan) {         //      } else if (recognizer.state == uigesturerecognizerstatechanged) {         //      } else {        //      } } 

however, want add uitapgesturerecognizer have same effect when user tap item.

is there way simulate "pinch out" gesture programmatically?

it's difficult synthesize touch (or multi touch) event on ios: have use non public apis, have high probability of getting rejected during apple review.

here's link demonstrates how synthesize touch event on iphone

http://www.cocoawithlove.com/2008/10/synthesizing-touch-event-on-iphone.html


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -