Detect touch event on UIScrollView AND on UIView's components [which is placed inside UIScrollView]
问题 I have UIViewController on my simple storyboard IPad project which contains UIScrollView which is placed over entire surface (1024 x 768). I have created 3 XIB files which are UIViews which my application loads on start in viewDidLoad and add them into UIScrollView. Each of these 3 XIB files contains only one UIButton. This is hierarchy: ~ UIViewController ( UIViewControllerClass is class for this UIViewController) ~~ UIScrollView (contains 3 identical UIViews) ~~~ UIView ( UIViewClass is