jiwuchao / customlayout Goto Github PK
View Code? Open in Web Editor NEWUIcollectionViewLayout 自定义layout 瀑布流 支持多区瀑布流 支持设置footer和header
UIcollectionViewLayout 自定义layout 瀑布流 支持多区瀑布流 支持设置footer和header
生成LayoutAttributes时创建indexPath用indexPathWithIndex,会导致在swift中的collectionView返回组头viewForSupplementaryElementOfKind这个方法取indexPath.section时崩溃。改成
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:i];
就好了
能帮忙看下什么原因吗?
比如我要实现微信群聊的效果 ,刚开始是三列,点击的时候 ,放大 ,是两列,但是你这个只能是固定的列数。
我们项目的需求是在图片加载完成后根据图片的高度去动态调整cell高度, 这个时候再去reloadItems(at: IndexPath) 就会cell显示错乱。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.