Console error “CGAffineTransformInvert: singular matrix” in UIWebView

做~自己de王妃 提交于 2019-12-04 11:09:49

Use Safri 6 Web Inspector and iOS 6 to inspect your web page.

First, delete some node in the inspector. If deleting one node eliminates the "singular matrix" error, then reload the page and inspect CSS styles of that node.

Uncheck CSS styles of that node one by one. Usually when checking or unchecking one style, some error messages appear. But if unchecking one certain CSS style eliminates error message, then you find the root cause.

For me, it's the display: inline-block style of one <div> causes such errors.

I was getting this error but I wasn't using a UIWebView. It turned out that the font I was using for an UILabel had a point size of zero... [UIFont fontWithName:@"AFontName" size:0]

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!