I want to flash an UIImageview on the iPad, how do I do that?

后端 未结 4 1986
自闭症患者
自闭症患者 2021-02-08 19:10

I want to let a UIImageView flash several times.

Currently I don\'t know how to do that.

Actual code:

-(void)arrowsAnimate{
    [UIVi         


        
4条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-08 19:40

    You need to wait for an animation to complete before launching a new one. You could chain your completion block in animate2 to go back to animate, and stop based on a counter property, implementing your loop in the animate/completion blocks instead of a separate loop.

提交回复
热议问题