UITableView crash gives 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [160 nan]'

后端 未结 5 1974
既然无缘
既然无缘 2021-01-31 19:15

I have a custom table view in my app. I have implemented the \"Load More\" feature to the table which loads 25 rows at a time. The problem is after loading 2 times the app crash

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-31 19:48

    Messages to nil that return structs of structs can return undefined values in the inner struct.

    In practical terms, this means that getting the frame from a nil UIView can return undefined values in the size field of the frame. This bug just bit me and I was surprised.

提交回复
热议问题