UITableView和MJReFresh结合使用问题记录

1. 代码主动调用下拉刷新,

[self.tableView.mj_header beginRefreshing]; 调用会走:

[MJRefreshNormalHeader headerWithRefreshingBlock:^{

}];

2. 上拉加载更多页面抖动解决方法:就写在创建UITableVIew的代码处就行了

///防抖动 参考https://blog.csdn.net/sss1507089/article/details/87873092
    self.tableView.estimatedRowHeight = 0;
    self.tableView.estimatedSectionHeaderHeight = 0;
    self.tableView.estimatedSectionFooterHeight = 0;

猜你喜欢

转载自www.cnblogs.com/liuw-flexi/p/10935956.html
今日推荐