eggswift / pull-to-refresh

#Busy Re-Building....# An easy way to use pull to refresh and infinite scrolling in Swift. Pod 'ESPullToRefresh'
MIT License
1.83k stars 253 forks source link

load more 展示错误 #57

Closed QiuZhiFei closed 7 years ago

QiuZhiFei commented 7 years ago

simulator screen shot 2017 1 21 12 30 37

Demo 最后一页,预期为 『No more data』,实际 『Loading more』


查看源码

// Back state
        UIView.animate(withDuration: 0.3, delay: 0, options: .curveLinear, animations: {
        }, completion: { (finished) in
            self.animator.refresh(view: self, stateDidChange: .pullToRefresh)
            super.stop()
        })

stop 函数结束后,默认变更为了 pullToRefresh 导致的 ... 这里重置为 pullToRefresh 的原因是?

期待您的回复。

eggswift commented 7 years ago

看起来的确有这个问题,稍后我来修复一下,也欢迎提交PR