iphone - prevent uiscrollview from scrolling by touch
Try setting yourScrollView.scrollEnabled = NO;
. That should do exactly what you want.
Swift, set scrollView.isScrollEnabled = false
and it should work!
Swift 3
self.scrollView.isScrollEnabled = false