czl0325 / ZLCollectionView

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

在 swift 使用 ZLCollectionViewVerticalLayout 这个的填充 FillLayout 布局 布局错误 #65

Closed summerxx27 closed 1 year ago

summerxx27 commented 1 year ago

在 reloadData 后就会布局错误 如图 https://p.ipic.vip/ad1rkq.jpg

reloadData后, ZLCollectionViewVerticalLayout 这个文件中 if (!self.isNeedReCalculateAllLayout) { return; } 这里会直接 return

summerxx27 commented 1 year ago

写了个demo 你有空的时候看看哈 运行点击第十行 cell 代码在这里 CollectionViewLayoutDemoViewController里面

https://github.com/summerxx27/XTAnimations

czl0325 commented 1 year ago

我运行你的demo没发现问题。

czl0325 commented 1 year ago
image
summerxx27 commented 1 year ago
噢噢 我的 demo reloaddata, 做了DispatchQueue.main.async执行, 去掉就会有问题了. summerx

@.*** |

---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年03月29日 16:16 | | 收件人 | @.> | | 抄送人 | @.> , @.> | | 主题 | Re: [czl0325/ZLCollectionView] 在 swift 使用 ZLCollectionViewVerticalLayout 这个的填充 FillLayout 布局 布局错误 (Issue #65) |

我运行你的demo没发现问题。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>