chenyilong / collectionviewclassifymenu Goto Github PK
View Code? Open in Web Editor NEWCollectionView做的两级菜单,可以折叠第二级菜单
CollectionView做的两级菜单,可以折叠第二级菜单
算法太过复杂了, UICollectionView不是有self-sizing么? 有没有关于这方面的资料?
3.5英寸屏幕没有适配好,首页顶部header右边飘出屏幕了
我想问一下您是怎么解决 cell 复用以后,不再调用 sizeForItemAtIndexPath 这个方法,导致的cell之间会彼此覆盖的问题的呢?我使用您的左对齐waterfalllayout的时候同样出现了复用后覆盖的问题,但是您的demo中就没有这个问题
你这个动态算宽度在滑动是的时候会卡段,原因计算宽度耗时
项目支持cocoapods吗
This is likely occurring because the flow layout subclass UICollectionViewLeftAlignedLayout is modifying attributes returned by UICollectionViewFlowLayout without copying them
google的解决方法 是copy 但是我copy也还是这样 我是直接用的布局 其他没用
如果改成选择某一组中的某一行,多次滑动,之前选中的会乱
这里的一个*位置放错了, 刚下载下来就报错, [cellsCountArrayPerRow enumerateObjectsUsingBlock:^(NSNumber __nonnull *cellsCount, NSUInteger cellsCountArrayPerRowIdx, BOOL * __nonnull stop)
导致一运行就报错,麻烦改下哦
(void)judgeMoreButtonShowWhenDefaultRowsCount:(NSUInteger)defaultRowsCount {
[self.rowsCountPerSection enumerateObjectsUsingBlock:^(id __nonnull obj, NSUInteger idx, BOOL * __nonnull stop) {
if ([obj integerValue] > defaultRowsCount) {
[self.collectionHeaderMoreBtnHideBoolArray replaceObjectAtIndex:idx withObject:@no];
} else {
[self.collectionHeaderMoreBtnHideBoolArray replaceObjectAtIndex:idx withObject:@yES];
}
}];
[self.cellsCountArrayPerRowInSections enumerateObjectsUsingBlock:^(id __nonnull cellsCountArrayPerRow, NSUInteger idx, BOOL * __nonnull stop) {
NSUInteger __block sum = 0;
[cellsCountArrayPerRow enumerateObjectsUsingBlock:^(NSNumber __nonnull *cellsCount, NSUInteger cellsCountArrayPerRowIdx, BOOL * __nonnull stop) {
if (cellsCountArrayPerRowIdx < defaultRowsCount) {
sum += [cellsCount integerValue];
} else {
//|break;| Stop enumerating ;if wanna continue use |return| to Skip this object
//http://t.cn/RAsfoAi
*stop = YES;
return;
}
}];
[self.firstRowCellCountArray replaceObjectAtIndex:idx withObject:@(sum)];
}];
}
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.