The question I have is simple but I couldn't find any information in the documentation.
What happens with layout constraints when a view is removed from the view hierarchy (or moved to another view)?
For example, let's have container C
with subviews A
and B
. Container C
holds some constraints. Then we call [A removeFromSuperview]
. What happens with the constraints for A
?
What then happens if we add A
to C
again?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…