CRRefresh icon indicating copy to clipboard operation
CRRefresh copied to clipboard

isIgnoreObserving 来判断offset并不准确

Open cherishloveyou opened this issue 7 years ago • 0 comments

在kvo里面添加如下打印 能打印出来 如果cell的大小为一个屏幕高度 会造成 回退不正常

            if keyPath == CRRefreshComponent.contentSizeKeyPath {
                if isIgnoreObserving == false {
                    sizeChange(change: change)
                }
            } else if keyPath == CRRefreshComponent.offsetKeyPath {
                if isIgnoreObserving == false {
                    offsetChange(change: change)
                    if isIgnoreObserving {
                        print("qqqqqq")
                    }
                }
            }

cherishloveyou avatar Jul 26 '17 05:07 cherishloveyou