ios - Stopping an UIView animation that was started but being delayed -
this question has answer here:
- how cancel uiview block-based animation? 3 answers
[uiview animatewithduration:1 delay:4 options:(uiviewanimationoptionallowuserinteraction | uiviewanimationoptioncurveeasein) animations:^ { // here (irrelevant) } completion:nil ]; how stop animation within time of delay? example, want stop animation after execute before delay timer ends. i've tried [self.view.layer removeallanimations]; no avail.
edit: i've stated. i've tried [self.view.layer removeallanimations]; no avail.
i didn't try can stop animations [view.layer removeallanimations]; should work.
Comments
Post a Comment