Re: center-y constant animation won't animate
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