@@ -112,17 +112,17 @@ - (void)viewDidLoad {
112112 make.top .mas_equalTo (100 );
113113 }];
114114 self.collectionView = view;
115- [self addSections ];
116- // [self addCrossFixedSections];
115+ // [self addSections];
116+ [self addCrossFixedSections ];
117117// [self addScaleSection];
118- self.collectionView .enableLongPressDrag = YES ;
118+ // self.collectionView.enableLongPressDrag = YES;
119119// [self.collectionView setConfigureSourceView:^UIView * _Nonnull(UICollectionViewCell * _Nonnull sourceCell) {
120120// UIView *source = [[UIView alloc] initWithFrame:sourceCell.frame];
121121// source.backgroundColor = [UIColor purpleColor];
122122// return source;
123123// }];
124124
125- self.navigationItem .rightBarButtonItem = [[UIBarButtonItem alloc ] initWithTitle: @" 刷新" style: UIBarButtonItemStylePlain target: self .collectionView action: @selector (reloadData )];
125+ // self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"刷新" style:UIBarButtonItemStylePlain target:self.collectionView action:@selector(reloadData)];
126126}
127127
128128- (void )addSections {
@@ -182,7 +182,9 @@ - (void)addSections{
182182
183183 section.itemDatas = [@[@" 1-1" , @" 1-2" , @" 1-3" ] mutableCopy ];
184184 section.cellElement = [FMLayoutElement elementWithViewClass: [FMCollectionCustomCell class ]];
185-
185+ [section setDeqCellReturnElement: ^FMLayoutElement * _Nonnull (FMLayoutDynamicSection * _Nonnull section, NSInteger index) {
186+ return [section.cellElements lastObject ];
187+ }];
186188 [section setFrameBlock: ^CGRect (id _Nonnull section, NSInteger item) {
187189 switch (item) {
188190 case 0 :
@@ -303,6 +305,7 @@ - (void)addCrossFixedSections{
303305 section.itemDatas = [@[@" 1" , @" 2" , @" 2" , @" 3" , @" 2" , @" 3" , @" 2" , @" 3" , @" 2" , @" 3" , @" 2" , @" 3" ] mutableCopy ];
304306
305307 FMLayoutCrossTransformSection *cSection = [FMLayoutCrossTransformSection sectionAutoWithSection: section];
308+ cSection.transformType = FMLayoutCrossTransformScale;
306309 // [cSection setTransformBlock:^(UICollectionViewCell * _Nonnull cell, CGFloat progress) {
307310 // cell.la
308311 // }];
0 commit comments