Re: Autolayout Animation in UITableViewCell
Re: Autolayout Animation in UITableViewCell
- Subject: Re: Autolayout Animation in UITableViewCell
- From: Ken Thomases <email@hidden>
- Date: Mon, 16 Jun 2014 10:26:50 -0500
On Jun 16, 2014, at 8:33 AM, Mazzaroth M. wrote:
> 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.
> 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.
I haven't looked at your code, but this should probably be done by simply setting the "constant" property of the relevant constraints.
Regards,
Ken
_______________________________________________
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