Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isIgnoreObserving 来判断offset并不准确 #7

Open
cherishloveyou opened this issue Jul 26, 2017 · 0 comments
Open

isIgnoreObserving 来判断offset并不准确 #7

cherishloveyou opened this issue Jul 26, 2017 · 0 comments

Comments

@cherishloveyou
Copy link

cherishloveyou commented Jul 26, 2017

在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")
                    }
                }
            }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant