美文网首页
MJRefresh的triggerAutomaticallyRe

MJRefresh的triggerAutomaticallyRe

作者: 喵喵粉 | 来源:发表于2020-04-22 11:35 被阅读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

相关文章

网友评论

      本文标题:MJRefresh的triggerAutomaticallyRe

      本文链接:https://www.haomeiwen.com/subject/cinbihtx.html