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

异常启动的下拉刷新动画 #35

Open
RealMeZJT opened this issue Mar 21, 2019 · 0 comments
Open

异常启动的下拉刷新动画 #35

RealMeZJT opened this issue Mar 21, 2019 · 0 comments

Comments

@RealMeZJT
Copy link
Contributor

iPhone X, iOS 12.1 环境下
在UIViewController显示时,CRRefresh自动开启了刷新动画,调用endHeaderRefresh 后顶部下移。
调试后才发现,CRRefresh是监听contentOffset 来做刷新的。
而UIViewController为了实现“Under Top Bars”, tableView.contentOffset 会被设置为 CGPoint(x: 0, y: -88) 。这就造成了冲突。
所以, CRRefresh能否只是监听由手指拖拽引起的contentOffset变化来做刷新的?
或者有什么其它办法可以解决上述问题?

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