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

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

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

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

上一篇:老机焕发青春 涉及硬件更换,黑苹果,超频,ramos等


下一篇:[苹果cmsV10]新版本演员库分类报无权限问题和解决方法!