ios : CGAffineTransformInvert: singular matrix.

       

如果你尝试,并设置缩放比例为零,你会得到这个消息:<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.transform0.0001f0.00001f);

ios <Error>: CGAffineTransformInvert: singular matrix.,布布扣,bubuko.com

ios <Error>: CGAffineTransformInvert: singular matrix.

上一篇:ios-reverse


下一篇:不会内存溢出的Android Handler写法