Animating only one axis of a UIView move?
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