Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

针对瀑布流的疑问 #43

Closed
ke112 opened this issue May 17, 2021 · 3 comments
Closed

针对瀑布流的疑问 #43

ke112 opened this issue May 17, 2021 · 3 comments

Comments

@ke112
Copy link

ke112 commented May 17, 2021

如果要用瀑布流 ,UICollectionView+ARDynamicHeightLayoutCell 是必须要用的吗 请问,那为什么不把这个文件 也放到pod的库里?

@czl0325
Copy link
Owner

czl0325 commented May 17, 2021

UICollectionView+ARDynamicHeightLayoutCell 这个不是我写的,是用github别人开源的第三方库,当然你也可以不用他,还有其他更好的方法也可以

@ke112
Copy link
Author

ke112 commented May 17, 2021

感谢回复,你好,如果不用那个库 ,对于使用瀑布流的时候 ClosedLayout,怎么高度自适应?
sizeForItemAtIndexPath这个方法 怎么返回 ? 我不想根据 数据算 在model里写一个cellHeight的属性,我也想根据设置的约束,自动布局,您这个库 支持吗?

@czl0325
Copy link
Owner

czl0325 commented May 17, 2021

你尝试下uicollectionviewcell的自动高度试试。我也没尝试过。你看看普通的uicollectionviewflowlayout是怎么实现自动高度的,那我的也是一样的方法

@czl0325 czl0325 closed this as completed May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants