ELCVFlowLayout
ELCVFlowLayout copied to clipboard
reloadData 会导致 显示错乱不堪!!!
hello 兄台, 为什么 在里面写了一个刷新 就不行了呢? 不信 你试试你的demo
-
(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath { NSLog(@"section %ld row --- %ld",indexPath.section, indexPath.row);
[collectionView reloadData]; }
您好,已经修改了,把_sectionDic = [NSMutableDictionary dictionary];的位置放到- (void)prepareLayout这个方法里面就ok了