Repeat count for UIView block-based animation

后端 未结 3 2307
误落风尘
误落风尘 2021-02-19 22:15

I\'ve looked at the methods for block based animation and noticed there is no equivalent parameter or option for [UIView setAnimationRepeatCount:].

What\'s

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-19 22:38

    Set a completion callback - re-initiate the animation in it - and keep track of the counter yourself.

提交回复
热议问题