• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UIScrolview in only one direction at time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: UIScrolview in only one direction at time (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: How to log arguments in runtime?
  • Next by Date: Re: Synthesised properties and additional actions
  • Previous by thread: Re: UIScrolview in only one direction at time
  • Next by thread: Use kAERestart to Restart Computer
  • Index(es):
    • Date
    • Thread