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

2016-09-14  本文已影响59人  阿兹尔

-(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);
}];
}

上一篇 下一篇

猜你喜欢

热点阅读