Re: UIScrolview in only one direction at time
Re: UIScrolview in only one direction at time
- Subject: Re: UIScrolview in only one direction at time
- From: talesp <email@hidden>
- Date: Wed, 22 Jun 2011 16:37:04 +0000 (GMT)
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 <email@hidden> wrote:
On Mon, 20 Jun 2011 21:29:55 -0300, Tales Pinheiro de Andrade <email@hidden> 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 = email@hidden, <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 (email@hidden)
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:
This email sent to email@hidden