- crash定位:Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [95.875 nan].
异常原因:CALayer在设置frame时进行了/0(除以0)的操作。
//NaN ,是Not a Number 的缩写. 可以用下面的方法去判断
isnan(x)
异常原因:CALayer在设置frame时进行了/0(除以0)的操作。
//NaN ,是Not a Number 的缩写. 可以用下面的方法去判断
isnan(x)
本文标题:iOS 异常crash之CALayer position con
本文链接:https://www.haomeiwen.com/subject/mdxubctx.html
网友评论