Hi all, I'm attempting to do animation with programmatic autolayout inside a UITableViewCell (iOS 7). I think I'm pretty close, but the animation is not what I expect.
I have two labels in a tableview cell, where the initial state is the labels are 10 points from the margin(leading edge). I'd like to animate the labels so that their margins animate to 70 points from the left margin. I can do this WITHOUT it animating, but animating it the ways I've tried it animates from the top left corner. The auto layout code is completely programmatic and done in FLKAutoLayout. I have two git projects that demonstrate what I mean. The 01 project uses -updateConstraints by blowing away the current constraints, and changing them from scratch when I detect a user tap. The 02 project stores the NSLayoutConstraints that are the 10-point leading edges and the NSLayoutConstraints that are the 70-point leading edges. I swap them when I detect a user tap. the 01 project: https://bitbucket.org/sidha/autolayoutanimationtablecell_01.git the 02 project: https://bitbucket.org/sidha/autolayoutanimationtablecell_02.git Requires Xcode 5.1 Any help or suggestions would be greatly appreciated. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com