Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contai

Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan 660.5]'

//调用栈

0 CoreFoundation__exceptionPreprocess + 162
1  libobjc.A.dylibobjc_exception_throw + 30
2 CoreFoundation-[NSException initWithCoder:]
3 QuartzCore CA::Layer::set_position(CA::Vec2<double> const&, bool) + 210
4 QuartzCore -[CALayer setPosition:] + 50
5 QuartzCore -[CALayer setFrame:] + 538
6 UIKit -[UIView(Geometry) setFrame:] + 232
7 UIKit -[UIWebDocumentView setFrame:] + 132
8 UIKit -[UIWebBrowserView setFrame:] + 120
9 UIKit -[UIWebDocumentView _resetForNewPage] + 196
10 UIKit -[UIWebDocumentView layoutSubviews] + 76
11 UIKit -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 258
12 QuartzCore -[CALayer layoutSublayers] + 214
13 QuartzCore CA::Layer::layout_if_needed(CA::Transaction*) + 460
14 QuartzCore CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 16
15 QuartzCore CA::Context::commit_transaction(CA::Transaction*) + 238
16 QuartzCore CA::Transaction::commit() + 316
17 QuartzCore CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 60

结果是算webview 高度时候 初始值为0 导致的,唉 给个webviewHeighe = 1; 

就OK了,奇了怪了,ios7没问题, ios6就崩溃!

记下来希望能帮助有这类问题的朋友们~

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值