Coder Social home page Coder Social logo

Comments (13)

czl0325 avatar czl0325 commented on July 19, 2024

麻烦demo压缩后发我邮箱[email protected]

from zlcollectionview.

cxz31415 avatar cxz31415 commented on July 19, 2024

邮件已发送

from zlcollectionview.

czl0325 avatar czl0325 commented on July 19, 2024

你先指定为瀑布流布局,2列,填充式布局minimumLineSpacing 大于 item高度会有问题,还得再修改下

from zlcollectionview.

cxz31415 avatar cxz31415 commented on July 19, 2024

不是的,这个只是用来测试的demo,我为了省事才这么写,我自己的项目里面用到了你的库,cell里面有图片和文字,高度都是超过minimumLineSpacing很多的,有的时候比如第一个cell高度为110,第二个为114,相差很小,就会出现这种情况

你可以把我发的demo里面那行填写高度数组的代码改成后面那样,高度都比minimumLineSpacing大,但是minimumLineSpacing照样有问题,不过我只是想要实现瀑布流而已,用你说的办法确实没问题了,感谢告知。
[_dataArrM addObject:@(arc4random_uniform(4) * 20 + 10)];
[_dataArrM addObject:@(arc4random_uniform(10) + 100)];

CB754EC4-75EE-49F1-8C94-0DB7523EC648

from zlcollectionview.

czl0325 avatar czl0325 commented on July 19, 2024

发你邮箱的包你替换测试下

from zlcollectionview.

cxz31415 avatar cxz31415 commented on July 19, 2024

这个正常了

from zlcollectionview.

czl0325 avatar czl0325 commented on July 19, 2024

from zlcollectionview.

cxz31415 avatar cxz31415 commented on July 19, 2024

用填充式布局正常了。

from zlcollectionview.

cxz31415 avatar cxz31415 commented on July 19, 2024

又有问题啦,这个填写小数的时候又不正常了(填充式布局),还是用我发给你的那个demo测试
layout.minimumLineSpacing = 15.5;
layout.minimumInteritemSpacing = 10.5;
要不加个向下取整?

from zlcollectionview.

czl0325 avatar czl0325 commented on July 19, 2024

minimumLineSpacing 不能大于item的宽高,你是不是超过了?

from zlcollectionview.

cxz31415 avatar cxz31415 commented on July 19, 2024

就是单纯改成小数而已,我之前不是发了demo给你吗?你试下就知道了

from zlcollectionview.

cxz31415 avatar cxz31415 commented on July 19, 2024

你是不是邮件删了?我重新发给你吧,你就改这行代码
layout.minimumLineSpacing = 15.1;
layout.minimumLineSpacing = 15;
这个值设置成15.1和15完全是两个效果

from zlcollectionview.

czl0325 avatar czl0325 commented on July 19, 2024

提交1.4.3版本了

from zlcollectionview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.