I\'m updating an old app with an AdBannerView
and when there is no ad, it slides off screen. When there is an ad it slides on the screen. Basic stuff.
O
I was trying to animate Constraints and was not really easy to found a good explanation.
What other answers are saying is totally true: you need to call [self.view layoutIfNeeded];
inside animateWithDuration: animations:
. However, the other important point is to have pointers for every NSLayoutConstraint
you want to animate.
I created an example in GitHub.