Comments (13)
麻烦demo压缩后发我邮箱[email protected]
from zlcollectionview.
邮件已发送
from zlcollectionview.
你先指定为瀑布流布局,2列,填充式布局minimumLineSpacing 大于 item高度会有问题,还得再修改下
from zlcollectionview.
不是的,这个只是用来测试的demo,我为了省事才这么写,我自己的项目里面用到了你的库,cell里面有图片和文字,高度都是超过minimumLineSpacing很多的,有的时候比如第一个cell高度为110,第二个为114,相差很小,就会出现这种情况
你可以把我发的demo里面那行填写高度数组的代码改成后面那样,高度都比minimumLineSpacing大,但是minimumLineSpacing照样有问题,不过我只是想要实现瀑布流而已,用你说的办法确实没问题了,感谢告知。
[_dataArrM addObject:@(arc4random_uniform(4) * 20 + 10)];
[_dataArrM addObject:@(arc4random_uniform(10) + 100)];
from zlcollectionview.
发你邮箱的包你替换测试下
from zlcollectionview.
这个正常了
from zlcollectionview.
from zlcollectionview.
用填充式布局正常了。
from zlcollectionview.
又有问题啦,这个填写小数的时候又不正常了(填充式布局),还是用我发给你的那个demo测试
layout.minimumLineSpacing = 15.5;
layout.minimumInteritemSpacing = 10.5;
要不加个向下取整?
from zlcollectionview.
minimumLineSpacing 不能大于item的宽高,你是不是超过了?
from zlcollectionview.
就是单纯改成小数而已,我之前不是发了demo给你吗?你试下就知道了
from zlcollectionview.
你是不是邮件删了?我重新发给你吧,你就改这行代码
layout.minimumLineSpacing = 15.1;
layout.minimumLineSpacing = 15;
这个值设置成15.1和15完全是两个效果
from zlcollectionview.
提交1.4.3版本了
from zlcollectionview.
Related Issues (20)
- 横向collectionView, ColumnLayout布局时候,Item能否横向顺序排列 HOT 1
- ios 15会闪退 HOT 6
- 自定义左右间距,以及cell中间间距,和collectionview的背景色时达不到想要的效果 HOT 1
- iOS15.5崩溃,列表不停地移除数据,请求数据会崩溃 HOT 2
- Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'no UICollectionViewLayoutAttributes instance for -layoutAttributesForDecorationViewOfKind: ZLCollectionReusableView at path <NSIndexPath: 0xd75e8385f47ec650> {length = 2, path = 0 - 0}' HOT 1
- 拖动有问题
- 横向collectionView,拖动排序,拖动到边缘无法自动滚动到其他cell(屏幕外),竖向的是可以 HOT 1
- 这种形式的可以实现吗 HOT 7
- 请问下demo运行警告怎么去掉呢 HOT 1
- 更新了1.4.7之后,在瀑布流布局会有cell布局的残影。 HOT 2
- 最新版本ZLCollectionViewBaseFlowLayout里重写了layoutAttributesForItemAtIndexPath HOT 3
- ClosedLayout类型下,宽度偶尔计算不正确,导致item的错位 HOT 1
- 在 swift 使用 ZLCollectionViewVerticalLayout 这个的填充 FillLayout 布局 布局错误 HOT 4
- 列布局 ColumnLayout, 纵向 item 排列问题 HOT 6
- 瀑布流布局有bug,数据源多以及复杂情况下瀑布流最后几个X不对 HOT 9
- 填充式布局,存在严重的性能问题。 HOT 2
- 崩溃 [NSObject allocWithZone:]: attempt to allocate object of class 'ZLCollectionViewLayoutAttributes' failed HOT 1
- cell初始化两次怎么 HOT 1
- 关于section Decoration view HOT 1
- 百分比布局下,设置小数比例无效! HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zlcollectionview.