R – UIScrollView paging just for horizontal, but not vertical

iphoneuiscrollview

I've been messing with the UIScrollView. Essentially I've put 7 views into it that are all taller than the contentSize. I set paging enabled to yes, and it's working great horizontally. An unexpected side effect, however, was that it also has paging enabled vertically. My tall views get stopped in multiples of the height of the contentSize. I'd like it to scroll normally vertically, and be paged horizontally. Is this possible?

Thanks

Best Answer

Not AFAIK. You should subclass UIScrollView, as explained in the documentation:

Subclasses can override the touchesShouldBegin:withEvent:inContentView:, pagingEnabled, and touchesShouldCancelInContentView: methods (which are called by the scroll view) to affect how the scroll view handles scrolling gestures.

Related Topic