Unable to find reason for Crash on -[UIScrollView(UIScrollViewInternal) _scrollViewAnimationEnded:finished:]

后端 未结 3 781
日久生厌
日久生厌 2021-02-05 13:55

In my app many crashes with the following log are reported very often, but even with several test devices and iOS versions I am not able to reproduce it. So there\'s no way to f

3条回答
  •  甜味超标
    2021-02-05 14:18

    I had the same crash. It turned out to be because we were animating a controller with [controller setContentOffset:newPt animated:YES], and we implemented the scrollViewDidScroll delegate method on the controller. Clicking a button on the screen let you advance to another controller, so if a user managed to click the button while the animation was in progress, we would hit the original poster's crash. The solution is simply to set the delegate to nil in dealloc.

提交回复
热议问题