ios - call a function when KDCircularProgress animation is done -
have used kdcircularprogress? if yes, how can when animation done?
circularprogressview.animatetoangle(360, duration: 5, completion:nil)
any idea how call function when animation done?
use completion:
circularprogressview.animatetoangle(360, duration: 5) { completed in if completed { // animation completed } else { // animation interrupted } }
Comments
Post a Comment