有人使用过KDCircularProgress吗?如果是,我在动画完成后如何做某事?
circularProgressView.animateToAngle(360, duration: 5, completion:nil)
知道动画完成后如何调用函数吗?
答案 0 :(得分:2)
使用完成:
circularProgressView.animateToAngle(360, duration: 5) { completed in
if completed {
// Animation was completed
} else {
// Animation was interrupted
}
}