美文网首页
UICollectionView添加MJRefresh下拉刷新偏

UICollectionView添加MJRefresh下拉刷新偏

作者: Funnyer | 来源:发表于2017-06-15 11:07 被阅读240次

UICollectionView添加MJRefresh下拉刷新偏移问题解决:
设置内填充的UICollectionView添加MJRefresh下拉刷新的时候会偏移,如下图:


下拉.png
松手.png

解决办法:
不要设置UICollectionView的contentInset
只需要设置flowLayout的sectionInset
既有内填充效果,又不会偏移。

相关文章

网友评论

      本文标题:UICollectionView添加MJRefresh下拉刷新偏

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