ios原生里面有一个自己感觉很炫的动画效果,在tableView的滚动时cell的一种弹出动画
在cell即将显示时对index path位置的cell进行操作,下面是我自己项目中的代码判断方法可以去掉
-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
if (self.RevenueArry.count>0) {
//设置x和y的初始值为0.1;
//cell.alpha=0.5;
cell.layer.transform = CATransform3DMakeScale(0.97, 0.97, 1);
//x和y的最终值为1
[UIView animateWithDuration:1 animations:^{
cell.layer.transform = CATransform3DMakeScale(1, 1, 1);
//cell.alpha=1;
}];
}
}