CGAffineTransformInvert:奇异矩阵 [英] CGAffineTransformInvert: singular matrix

查看:374
本文介绍了CGAffineTransformInvert:奇异矩阵的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经偶然看到的错误消息:

I've been occasionally seeing the error message:

CGAffineTransformInvert: singular matrix

在Xcode的日志记录区域。当我在UIWebView中调整大小以调整网站大小时,这似乎很少发生(幸运的是)。 [商业网站,不是我自己的。]由于我在我的应用程序中没有进行仿射转换,我想知道这可能是UIWebView的错误/功能。如果是这样,我可以忽略它,因为它似乎没有干扰任何东西吗?

In the logging area of Xcode. This seems to occur (infrequently, fortunately) when I pinch to resize a web site within a UIWebView. [Commercial website, not my own.] Since I do no Affine Transformations in my App, I'm wondering if this might be a bug/feature of UIWebView. If so, can I ignore it, since it doesn't seem to be interfering with anything?

推荐答案

从环顾四周看看如果您尝试将缩放比例设置为零,则会显示您将收到此消息。当您捏合并查看它是否为零时(并且与仿射变换错误同时发生),NSLog对缩放值有用。

From looking around at other posts, it appears you'll get this message if you try and set the zoom scale to zero. Would be useful to NSLog the scale value when you pinch and see if it gets to zero (and occurs at the same time as the affine transform error).

这篇关于CGAffineTransformInvert:奇异矩阵的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆