iOS - 关于'CALayer position contains NaN: [nan nan]'异常

异常

Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]'

原因

计算高度,宽度,CGRectMake设置等中存在错误,看看是不是除0等操作了

摘自:https://blog.csdn.net/wujiabin468/article/details/7963747

你可能感兴趣的:(iOS - 关于'CALayer position contains NaN: [nan nan]'异常)