效果图(真机效果好一点.毕竟 gif)
tableView动画.gif
代码
- (void)collectionView:(UICollectionView *)collectionView willDisplayCell:(UICollectionViewCell *)cell forItemAtIndexPath:(NSIndexPath *)indexPath{
cell.layer.transform = CATransform3DMakeScale(0.1, 0.1, 1);
[UIView animateWithDuration:0.5 animations:^{
cell.layer.transform = CATransform3DMakeScale(1, 1, 1);
}];
}
网友评论