Currently I'm making a custom view with a scrollView inside it. I've got following views hierarchy now:
-> UIView (self)
|--> UIScrollView
|---> UIView (itemsContainer)
|---> UIView (testView)
|---> UIView (testView)
|---> UIView (testView)
and so on (I've got about hundred testViews here). Note that "testView" is just an example (instead of it, it may be any view you like)
TestView is created from xib and has a UIButton. ScrollView consumes all touches and button's touchUpInside event didn't fire. How can I forward touches from ScrollView to it's subviews???
Note that if I remove ScrollView from hierarchy and place itemsContainer without it, all will work fine. Also: I need to forward touches not only to UIButtons. It can be 5 buttons and 2 switches on testView in example. How can I solve this problem?