0

Have anyone used KDCircularProgress? If yes, how can I do something when the animation is done?

circularProgressView.animateToAngle(360, duration: 5, completion:nil)

Any idea how to call a function when the animation is done?

4

1 回答 1

2

使用补全:

circularProgressView.animateToAngle(360, duration: 5) { completed in
    if completed {
        // Animation was completed
    } else {
        // Animation was interrupted
    } 
}
于 2016-02-08T00:53:35.403 回答