I've created a custom scrollview class that uses two child views which can be scrolled (with paging enabled) to have either view currently on the screen.
What I would like to do is changing it so that the second view only scrolls in when a specific button is tapped. So the user should not be allowed to scroll in the second view with a drag gesture.
How can I temporarily disabled the drag gesture on the scroll view? (Temporarily because when the second view has been scrolled in, it should be reactivated so the user can drag that view out of the screen).
Thanks for any hints!
self.myscrollview.scrollEnabled = NO;