如果你尝试,并设置缩放比例为零,你会得到这个消息:<Error>: CGAffineTransformInvert: singular matrix.
[UIView
animateWithDuration:0.5
animations:^{
CGAffineTransform newTransform =
CGAffineTransformScale(myView, 0.0,
0.0);
[myView setTransform:newTransform];
} completion:^(BOOL finished) {
}];
改为:CGAffineTransform newTransform = CGAffineTransformScale(s.transform, 0.0001f, 0.00001f);
ios <Error>: CGAffineTransformInvert: singular matrix.
时间: 2024-11-13 08:15:58