报错如下:
Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [0 nan]'
原因:CALayer的position位置中包含有不存在的数,说白了就是View.frame 计算时存在了问题,有的地方除以0了。
代码排查即可。
Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [0 nan]'
原因:CALayer的position位置中包含有不存在的数,说白了就是View.frame 计算时存在了问题,有的地方除以0了。
代码排查即可。
本文标题:iOS运行奔溃 -- Terminating app due t
本文链接:https://www.haomeiwen.com/subject/ydbyektx.html
网友评论