czl0325 / ZLCollectionView

为应对类似淘宝首页,京东首页,国美首页等复杂布局而写的Collectionview。基于UICollectionView实现,目前支持标签布局,列布局,百分比布局,定位布局,填充式布局,瀑布流布局等。支持纵向布局和横向布局,可以根据不同的section设置不同的布局,支持拖动cell,头部悬浮,设置section背景色和自定义section背景view,向自定义背景view传递自定义方法。功能强大,超过Android的recyclerview,实现了电影选座等高难度的布局。
MIT License
1.16k stars 166 forks source link

运行demo的时候,用mj_header,下拉刷新之后,最后两个item会先错位一下,然后慢慢恢复正常,如果换成系统自带的下拉刷新就不会,怎么解决呢 #37

Closed samchojine closed 3 years ago

samchojine commented 3 years ago

去mj看了下,他那边的bug,这里更新最新的mjrefresh后,demo添加
_collectionViewLabel.mj_header.isCollectionViewAnimationBug = YES; 这个属性就可以了.

    __weak typeof(self) weakSelf=self;
    //_collectionViewLabel.mj_header.ignoredScrollViewContentInsetTop = 150;
    _collectionViewLabel.mj_header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
        [weakSelf.collectionViewLabel reloadData];
        [weakSelf.collectionViewLabel.mj_header endRefreshing];
    }];
    _collectionViewLabel.mj_header.isCollectionViewAnimationBug = YES;