iOS: flowlayout do not set pagingEnabled.

This commit is contained in:
pengfei.zhou 2021-07-15 15:57:12 +08:00 committed by osborn
parent df204c97ae
commit 5c089f1b7c

View File

@ -186,7 +186,7 @@ - (UICollectionView *)build {
collectionViewLayout:flowLayout] collectionViewLayout:flowLayout]
also:^(UICollectionView *it) { also:^(UICollectionView *it) {
it.backgroundColor = [UIColor whiteColor]; it.backgroundColor = [UIColor whiteColor];
it.pagingEnabled = YES; it.pagingEnabled = NO;
it.delegate = self; it.delegate = self;
it.dataSource = self; it.dataSource = self;
[it registerClass:[DoricFlowLayoutViewCell class] forCellWithReuseIdentifier:@"doricCell"]; [it registerClass:[DoricFlowLayoutViewCell class] forCellWithReuseIdentifier:@"doricCell"];