János János - 1 year ago 64
iOS Question

How can I trigger to update all the autolayout constrains?

I modified programmatically one autolayout constrain. It takes effect on one certain view, but other views that are bounded with other constrains to that view, does not change their positions. Does it exist an "updateAllConstrains" method?

Answer Source

The problem was that constrains were not set up properly, and in this case non of the setNeedsLayout or updateConstraintsIfNeeded can help.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download