MJRefresh的triggerAutomaticallyRe

2020-04-22  本文已影响0人  喵喵粉

集成MJRefresh出现的问题:

let header = MJRefreshNormalHeader(refreshingBlock: {
     self.freshList()
})

let footer = MJRefreshAutoNormalFooter(refreshingBlock: {
    self.loadMoreList()
})
footer?.triggerAutomaticallyRefreshPercent = -20

header.beginRefreshing()后,freshList()、loadMoreList()都调用了,定位到.reloadData()触发了footerrefresh

方法:
footer?.triggerAutomaticallyRefreshPercent = -20

上一篇 下一篇

猜你喜欢

热点阅读