4
例如,我已經在添加到CAAnimationGroup中的前自動佈局時間中做到這一點。如何動畫CAAnimationGroup中的NSLayoutConstraint
CABasicAnimation *resizeAnimation = [CABasicAnimation animationWithKeyPath:@"bounds.size"];
[resizeAnimation setToValue:[NSValue valueWithCGSize:CGSizeMake(10.0f, 10.0f)]];
resizeAnimation.fillMode = kCAFillModeForwards;
resizeAnimation.removedOnCompletion = NO;
在自動佈局下,我假設現在我需要改變我的Constraints對象的Constant屬性。
所以你能幫我理解如何準備一個約束的動畫。
編輯在最佳實踐掌握自動佈局 - 在30米左右,他在OSX上使用NSAnimationContext做到這一點 - 他不談論iOS。
可能的重複[如何更改動畫約束?](http://stackoverflow.com/questions/12622424/how-do-i-animate-constraint-changes) – ZhangChn