UIScrollViewPanGestureRecognizer was deallocated while key value observers was still registered with it

UIScrollViewPanGestureRecognizer was deallocated while key value observers was still registered with it_第1张图片

UIScrollViewPanGestureRecognizer was deallocated while key value observers was still registered with it;

原因是 添加的通知的原因。
无法加断点,在具体位置,僵尸模式也无法找到,crash消息在main.m函数里边。

然后想起来崩溃之前在重写写Refresh.项目里边放了一个MJRefresh和一个复制于MJ,但是修改高度样式的Refresh.然后删掉新增的就不会崩溃了。

虽然知道是Observer的原因,但是不知道为什么。

可能是因为首页添加了新的Refresh,然后通过tabbar跳转走,在新的页面添加了MJ,返回的时候发出的通知都是contentOffset,发给了错误的接收者。

你可能感兴趣的:(UIScrollViewPanGestureRecognizer was deallocated while key value observers was still registered with it)