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

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -