Skip to content

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

@RealMeZJT

Description

@RealMeZJT

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions