我正在UIView
使用以下代码制作动画。这很好用,但我如何让它同时动画比例,我希望它在旋转时缩小到 0。
[UIView animateWithDuration:0.4 delay:0.0 options:UIViewAnimationOptionCurveEaseInOut
animations:^(void) {
recognizer.view.transform = CGAffineTransformMakeRotation(DegreesToRadians(540));
recognizer.view.backgroundColor = [[UIColor alloc] initWithRed:220.0/255.0 green:220.0/255.0 blue:220.0/255.0 alpha:1.0];
}];