CGAffineTransformInvert: singular matrix. 解决方案
2015-11-03 10:58
489 查看
这个错误叫奇异矩阵,
引起的原因有三种:
1 [UIFont fontWithName:@"AFontName" size:0] 你把字体的size设置为0了
2 你添加的view控件frame为0 例如:
I was seeing this problem too when I added a UIWebView to my self.view.
The offending code was:
UIWebView *wv = [[UIWebView alloc]init];
and the solution is:
UIWebView *wv = [[UIWebView alloc]initwithFrame:[[UIScreen mainScreen]bounds]];
or any framesize except 0.0.
3. UIScrollView, storyboard , autolayout 冲突,这个好像是苹果的问题,解决方法是
uncheck the "use autolayout" checkbox on storyboard properties
4.
如果你用webview 载入网页出现这样问题的话,是因为
CSS 設定 display: inline-block 而造成 Transform 错误(估计是苹果的bug)
解決方法是:
選擇一:不要用「display: inline-block」(這應該會是 Apple 會回答你的解決方案)。
選擇一:如果你跟我一樣,使用「display:
inline-block」是為了要把 Element 排成橫的,那麼恭喜!你可以改用「display: table-cell」,效果一樣!
(文章出处:http://blog.sina.com.cn/s/blog_675142dc0101cif7.html)
引起的原因有三种:
1 [UIFont fontWithName:@"AFontName" size:0] 你把字体的size设置为0了
2 你添加的view控件frame为0 例如:
I was seeing this problem too when I added a UIWebView to my self.view.
The offending code was:
UIWebView *wv = [[UIWebView alloc]init];
and the solution is:
UIWebView *wv = [[UIWebView alloc]initwithFrame:[[UIScreen mainScreen]bounds]];
or any framesize except 0.0.
3. UIScrollView, storyboard , autolayout 冲突,这个好像是苹果的问题,解决方法是
uncheck the "use autolayout" checkbox on storyboard properties
4.
如果你用webview 载入网页出现这样问题的话,是因为
CSS 設定 display: inline-block 而造成 Transform 错误(估计是苹果的bug)
解決方法是:
選擇一:不要用「display: inline-block」(這應該會是 Apple 會回答你的解決方案)。
選擇一:如果你跟我一樣,使用「display:
inline-block」是為了要把 Element 排成橫的,那麼恭喜!你可以改用「display: table-cell」,效果一樣!
(文章出处:http://blog.sina.com.cn/s/blog_675142dc0101cif7.html)
相关文章推荐
- python发送HTTP请求
- KeyEvent列表及用法
- Android网络编程五:(7)Volley之ImageCache
- xposed相关
- 兄弟郊游问题
- Js文件中调用其它Js函数的方法
- I.MX6 GPS JNI HAL register init hacking
- 深入了解mybatis二级缓存
- Spring-Task用法
- Brotli与zip压缩率对比
- Ubuntu下配置虚拟IP地址
- 每天一个linux命令(33):df 命令
- Bitmap那些事(2)
- 玩转apache之日志【转帖】
- redis 数据类型详解 以及 redis适用场景场合
- MySQL主从服务器数据一致性的核对与修复
- InstallShield使用文档
- 成绩转换
- Spring mvc注解的学习以及配置文件的解释
- getpass模块