CALayerInvalidGeometry CALayer position contains NaN: [nan 45]

CALayerInvalidGeometry

CALayer position contains NaN: [nan 45]

bugly中捕获到类似这种错误,一般是因为设置frame或者坐标为无穷大导致,出现无穷大的原因是因为0做除数,所以需要在计算frame或者坐标的时候,保证除数(变量)一定不能为0.

你可能感兴趣的:(CALayerInvalidGeometry CALayer position contains NaN: [nan 45])