• 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
Autoscrolling when dragging?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Autoscrolling when dragging?


  • Subject: Autoscrolling when dragging?
  • From: Rick Mann <email@hidden>
  • Date: Thu, 18 Aug 2011 15:49:29 -0700

Hi,

I'm implementing drag & drop functionality on one of my views, and I'd like to autoscroll the containing view when the user lingers near an edge. Is there any support built-in to iOS 4+ for this?

If not, what is the recommended approach? I thought I'd do something like this:

If the user enters the auto-sroll area, start a timer
If they leave the area, invalidate the timer
If the timer fires, then start another, repeating timer that just adjusts the contentOffset of the scroll view in the appropriate direction
If they let go, or leave the auto-scroll area, invalidate the second timer

Am I missing anything?

Thanks!

--
Rick

_______________________________________________

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

  • Follow-Ups:
    • Re: Autoscrolling when dragging?
      • From: Graham Cox <email@hidden>
  • Prev by Date: FW: Safe way to convert C String to NSString
  • Next by Date: altering an NSImage by access to pixels
  • Previous by thread: Re: -[UITable indexPathsForRowsInRect:] returning bogus paths?
  • Next by thread: Re: Autoscrolling when dragging?
  • Index(es):
    • Date
    • Thread