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
Post a Comment