I have a UIScrollView
that has a custom UIView
subclass. On this UIView
there are several UIButton
s spreads on the view, the hierarchy of the UIViewController
is:
UIViewConteroller's View > Custom UIView > UIScrollView > Custom UIView > UIButtons.
The problem is that when I try to scroll the scrollView, it doesn't scroll if I start the scrolling from one of the buttons. It does scroll if I start it from one of the gaps between each button.
How can I make the scrollView scroll even when I start the scroll from the button (and the button will be triggered just if I click it)?
I've tried to set canCancelContentTouches
to true
but it didn't work.
I've tried to subclass UIScrollView
and override touchesShouldCancel
but it still doesn't work when I start a scroll from one of the buttons...
Thank you!