• 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
Re: Autolayout Animation in UITableViewCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Autolayout Animation in UITableViewCell (From: "Mazzaroth M." <email@hidden>)

  • Prev by Date: NSScrollView skips rendering pages
  • Next by Date: Re: NSScrollView skips rendering pages
  • Previous by thread: Autolayout Animation in UITableViewCell
  • Next by thread: Crash Dispatch queue: com.apple.CFURLCACHE_work_queue
  • Index(es):
    • Date
    • Thread