豆瓣电台笔记3:cell添加从中间向两侧放大的动画
步骤:
1、设置动画属性的初始值
cell.layer.transform = CATransform3DMakeScale(0.1,0.1,1)
2、在指定时间内执行动画
UIView.animateWithDuration(0.25, animations:{()->Void in
cell.layer.transform = CATransform3DMakeScale(1,1,1)
})
3、设置动画属性的结束值
在tableView中的cellWillDisplay添加如上方法
浙公网安备 33010602011771号