I have one scroll view (UserInteractionEnabled = No
) with one image view as its subview.
I am assigning tap gesture to imageview but it is not working even if imageview is UserInteractionEnabled
because Its parent (ScrollView) is not.
How can I resolve this conflict.
Asked
Active
Viewed 344 times
0

KDeogharkar
- 10,939
- 7
- 51
- 95
-
3See: http://stackoverflow.com/questions/4661589/how-to-get-touches-when-parent-view-has-userinteractionenabled-set-to-no-in-ios – Chris Jun 07 '13 at 12:23
2 Answers
1
There is no reason to disable user interaction on a scroll view. If you want to block the scrolling, disable it using the scrollEnabled
property.

Sulthan
- 128,090
- 22
- 218
- 270
0
Don't set scroll view (UserInteractionEnabled = No)
because it will set to all its subViews.
hope it will work.

Prateek Prem
- 1,544
- 11
- 14