• 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
Animating only one axis of a UIView move?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Animating only one axis of a UIView move?


  • Subject: Animating only one axis of a UIView move?
  • From: Rick Mann <email@hidden>
  • Date: Mon, 09 Apr 2012 17:01:28 -0700

I'm experimenting with a two-axis thumbnail browsing UI.

Currently, I have a horizontal strip of thumbnails, which is left-right scrollable. If you pan up in one of the thumbs, a vertical strip grows up out of the thumbnail where the pan started.

If the user tried to scroll the horizontal strip, I want to animate closing of the vertical strip (slide it down), but I want its horizontal position to track with the scrolling horizontal strip.

So, I'd like to animate its y position, but not the x position, which I want to update as the horizontal strip's contentOffset updates (via KVO). Unfortunately, since I have to set the entire frame rect, I don't see how to do this.

Any suggestions? I think I could do this in OS X with the full power of Core Animation, but stuff is missing in iOS, right?

--
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: Animating only one axis of a UIView move?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: -[NSURL path] "If the path has a trailing slash it is stripped"
  • Next by Date: Re: -[NSURL path] "If the path has a trailing slash it is stripped"
  • Previous by thread: Re: NSAffineTransform on iOS
  • Next by thread: Re: Animating only one axis of a UIView move?
  • Index(es):
    • Date
    • Thread