views:

514

answers:

1

Hey SO,

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

+1  A: 

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.

Adrian Kosmaczewski