Possible Duplicate:
Dragging an UIView inside UIScrollView
My app has a scrollview which contains progressBar and imageviews etc.
Now i want to add TapGestureRecognizer only to the imageviews that are in my scroll view.
i am able to add TapGestureRecognizer to my total scrollview but not my images which are in scrollview
NOTE: Want to add TapGestureRecognizer only to my imageviews that are subviews of my scrollView, not to entire scrollView.
Here is my code:
UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(singleTapGestureCaptured:)];
[myScrollView addGestureRecognizer:singleTap];