首页 > 移动平台 > 详细

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

时间:2014-03-23 22:44:57      阅读:764      评论:0      收藏:0      [点我收藏+]

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就崩溃!

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

Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contai,布布扣,bubuko.com

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

原文:http://blog.csdn.net/a472502927/article/details/21886355

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!