János János - 5 months ago 34
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?


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