-(void)collectionView:(UICollectionView *)collectionView willDisplayCell:(UICollectionViewCell *)cell forItemAtIndexPath:(NSIndexPath *)indexPath {
// CGAffineTransformMake(a,b,c,d,tx,ty)
// ad縮放bc旋轉tx,ty位移,基礎的2D矩陣
cell.transform = CGAffineTransformMakeScale(1.4, 1.4);//CGAffineTransformMake(1.4, 0, 0, 1.4, 10, 10);
[UIView animateWithDuration:0.5 delay:0.0 options:UIViewAnimationOptionCurveEaseInOut animations:^{
cell.transform = CGAffineTransformIdentity;
} completion:nil];
}
UICollectionView的Cell加載動畫
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.