How do you set the duration for UICollectionView Animations?

后端 未结 9 2075
旧巷少年郎
旧巷少年郎 2020-12-12 17:07

I have a custom flow layout which is adjusting the attributes for cells when they are being inserted and deleted from the CollectionView with the following two functions, bu

9条回答
  •  半阙折子戏
    2020-12-12 17:41

    change CALayer's speed

    @implementation Cell
    - (id)initWithFrame:(CGRect)frame
    {
    self = [super initWithFrame:frame];
    if (self) {
        self.layer.speed =0.2;//default speed  is 1
    }
    return self;
    }
    

提交回复
热议问题