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

Autolayout Animation in UITableViewCell


  • Subject: Autolayout Animation in UITableViewCell
  • From: "Mazzaroth M." <email@hidden>
  • Date: Mon, 16 Jun 2014 09:33:22 -0400

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 (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: Autolayout Animation in UITableViewCell
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: CGDisplayIOServicePort deprecated in 10.9... IOServicePortFromCGDisplayID?
  • Next by Date: Crash Dispatch queue: com.apple.CFURLCACHE_work_queue
  • Previous by thread: Re: CGDisplayIOServicePort deprecated in 10.9... IOServicePortFromCGDisplayID?
  • Next by thread: Re: Autolayout Animation in UITableViewCell
  • Index(es):
    • Date
    • Thread