How to cancel UIViews block-based animation?

前端 未结 4 1494
野性不改
野性不改 2020-12-15 19:05

i currently focus the following problem:

i start an animation, where 2 objects-attributes are triggered.

the code is:

    [UIView animateWith         


        
4条回答
  •  攒了一身酷
    2020-12-15 19:55

    Blocks will always complete after they start, and cannot be stopped (unless you crash the app). You might want to use notification center or NSTimer to manually change frames instead.

提交回复
热议问题