iphone - Adding UIPinchGestureRecognizer on a UIImageview which is subview of UIScrollview's -


i using 1 uiscrollview , uiimageview subview of uiscrollview, , want use uipinchgesturerecognizer on uiimageview, not working.

it's simple, can use :

yourimageview = [[uiimageview alloc] initwithimage:yourimage]; [yourscrollview addsubview:yourimageview]; uitapgesturerecognizer *singletap = [[uitapgesturerecognizer alloc] initwithtarget:self action:@selector(handlesingletap:)]; [yourimageview addgesturerecognizer:singletap]; [sibgletap release]; 

goodluck.


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 -

java - SmsManager sending message more than one -