János János - 15 days ago 5
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

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