tableView//collectionView加载时的动画

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {

    ProjectIntroViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:COLLECTIONVIEW_CELLID forIndexPath:indexPath];

    [cell updateUIWithModel:model];

//    cell.layer.transform = CATransform3DMakeScale(0.1, 0.1, 1);

//    //设置动画时间为0.25,xy方向缩放的最终值为1

//    [UIView animateWithDuration:0.25 animations:^{

//        cell.layer.transform = CATransform3DMakeScale(1, 1, 1);

//    }];

    return cell;

}

转载于:https://www.cnblogs.com/melons/p/5792046.html

你可能感兴趣的:(tableView//collectionView加载时的动画)