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

后端 未结 5 1977
既然无缘
既然无缘 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 20:00

    For me it was caused by the toView in this code being nil:

        [UIView transitionFromView:self.fromView
                            toView:self.toView
                          duration:0.6
                           options:(currentPage > toPage ? UIViewAnimationOptionTransitionCurlDown : UIViewAnimationOptionTransitionCurlUp)
                        completion:^(BOOL finished) {
                            if (finished) {
                            }
                        }
    

提交回复
热议问题