参考苹果官方文档 (See example in "Animating Changes Made by Auto Layout" section)
[self.m_pContentBoxView.superview setNeedsUpdateConstraints];
[UIView animateWithDuration:0.5 animations:^{
self.m_pContentLeftConstraint.constant = changeX;
[self.m_pContentBoxView.superview layoutIfNeeded];//最后使用layoutifneeded方法来从新定义约束,并且产生动画
}];