small medium large xlarge

Generic-user-small
24 Dec 2009, 00:43
Mathew Pretel (3 posts)

Hi, I’ve been trying to create a class that extends UIScrollView that only allows you to scroll vertically and horizontally, and never allow both. The directionalLockEnabled property makes your UIScrollView behave just like UIWebView where scrolling is locked when it detects what direction you are going with your finger but if you start scrolling diagonally it will let you scroll to both directions.

I have looked all over the place and haven’t found a straight answer on how to do that, and wasn’t successful with my experiments.

thanks in advance,

mp

You must be logged in to comment