Re: Autolayout warnings
Re: Autolayout warnings
- Subject: Re: Autolayout warnings
- From: Doug Hill <email@hidden>
- Date: Wed, 14 Dec 2016 15:39:38 -0800
Great, more good stuff to know!
However, trying this out I see that some views animate and others don't (just jump into place). I guess I'll look into a more animatable design.
Doug Hill
> On Dec 14, 2016, at 3:24 PM, Ken Thomases <email@hidden> wrote:
>
> On Dec 14, 2016, at 5:15 PM, Doug Hill <email@hidden> wrote:
>>
>> Ok, this is more good information to keep in mind when designing autolayout constraints. Given that my design isn't animatable, it's back to the autolayout drawing board. Again.
>
> I think it works to animate a change of constraints if you do the -layoutIfNeeded on the window within the animation context. It's technically animating the frame changes rather than the constraints, which can transition through some different states and even temporarily violate constraints, but for this case it should work.
>
> 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