我試圖使動畫像這樣兩種觀點:UIView的動畫多的觀點
CGAffineTransform transform = CGAffineTransformMakeRotation(M_PI_2);
CGRect rect = self.oneView.frame;
rect.origin.y = 10;
[UIView animateWithDuration:0.5 delay:0.0 options:UIViewAnimationOptionCurveLinear animations:^{
self.oneView.frame = rect;
self.buttonView.transform = transform;
} completion:^(BOOL finished) {
...
}];
但只有buttonView已經轉動。 OneView保持原位。但如果我評論
//self.buttonView.transform = transform;
OneView已移動。
但它工作,如果我評論這一行:self.buttonView.transform = transform; –