I read many (same) questions and answers at stackoverflow.com about my problem (NSLayoutConstraint doesn\'t animate). All of the solutions said that the code has to be: