layoutIfNeeded
Use this method to force the layout of subviews before drawing. Using the view that receives the message as the root view, this method lays out the view subtree starting at the root.
可以用于更新动画, 有时候使用约束添加动画之后, 动画没有反应, 我们在动画效果结束之后, 手动调用layoutIfNeeded, 动画就会执行.