• 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: center-y constant animation won't animate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: center-y constant animation won't animate


  • Subject: Re: center-y constant animation won't animate
  • From: Rick Mann <email@hidden>
  • Date: Mon, 04 Aug 2014 16:20:05 -0700

Ah, thank you.

On Aug 4, 2014, at 16:15 , David Duncan <email@hidden> wrote:

>
>> On Aug 4, 2014, at 4:10 PM, Rick Mann <email@hidden> wrote:
>>
>> I'm setting the constant of a center-y-in-container constraint in a [UIView animateWith…] block, but it doesn't animate; it just jumps to the offset location. Any idea what I might be doing wrong? The code is pretty straightforward…
>>
>> 	https://pastee.org/edgsf
>
> Constraints are like recipes for layout, they don’t perform the actual layout themselves. You need to force layout on the affected view (by calling -layoutIfNeeded on it) within the animation block to generate the animation.
>
>> I tried calling -animateWithDuration directly, and enqueueing it on the main queue (as seen here). Same result.
>>
>> Any help would be much appreciated.
>>
>>
>> --
>> Rick Mann
>> email@hidden
>>
>>
>>
>> _______________________________________________
>>
>> 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
>
> --
> David Duncan
>


--
Rick Mann
email@hidden



_______________________________________________

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: 
 >center-y constant animation won't animate (From: Rick Mann <email@hidden>)
 >Re: center-y constant animation won't animate (From: David Duncan <email@hidden>)

  • Prev by Date: Re: center-y constant animation won't animate
  • Next by Date: Re: Talking to other apps
  • Previous by thread: Re: center-y constant animation won't animate
  • Next by thread: Re: center-y constant animation won't animate
  • Index(es):
    • Date
    • Thread