美文网首页
TableViewCell出现时的炫酷动画-两行代码

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

作者: 一束橘子 | 来源:发表于2016-07-09 20:52 被阅读71次

-(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出现时的炫酷动画-两行代码

      本文链接:https://www.haomeiwen.com/subject/xjxdjttx.html