Dynamic height with autolayouts

Hello there.
I want to change height of View2 on touch button1. UI made using autolayouts, without any storyboards, or XIBs.
How can I change it?

Tagged:

Posts

  • adamkempadamkemp USInsider, Developer Group Leader mod

    Keep a reference to the constraint and then update the constraint. The right way to do that is to call View.SetNeedsUpdateConstraints() and then override UpdateViewConstraints and change the constant of the relevant constraint from there.

  • AlexanderMoshkinAlexanderMoshkin USMember

    Thanks! Will try.

Sign In or Register to comment.