Alright, thank you!

I was trying to do this in my class, that is a subclass of UIScrollview. But it 
was looking strange and not really working.

I'll try this.

Thank you again.

On 22 Jun, 2011,at 12:37 PM, Matt Neuburg <m...@tidbits.com> wrote:

On Mon, 20 Jun 2011 21:29:55 -0300, Tales Pinheiro de Andrade <tal...@me.com> 
said:
Hello

Hello.

is it possible to temporally disable the scroll in one direction?

Yes.

For example, if the user start scrolling in horizontal, so it's only possible 
to scroll in that direction, until the scroll end. After that, if the user 
starts scrolling in vertical, it's temporally (until the scrolls end) not 
possible to scroll in horizontal.

Fine.

How can I check this scroll?

In the delegate. You know the content offset as the scroll starts (in the 
delegate), and you can change the content offset as the user scrolls (in the 
delegate), so you can counteract any change in the x- or y-component of the 
content offset during the drag. m.

--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to