TableViewCell出现时的炫酷动画-两行代码

-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
cell.layer.transform = CATransform3DMakeScale(0.1, 0.1, 1);
[UIView animateWithDuration:0.7 animations:^{
cell.layer.transform = CATransform3DMakeScale(1, 1, 1);
}];
}

你可能感兴趣的:(TableViewCell出现时的炫酷动画-两行代码)