Tag: completion-block

Die Interaktion der Nutzer mit uiview und animation Fertigstellung der Blöcke

Anzahl der Antworten 3 Antworten
Ich habe den folgenden code: [UIView animateWithDuration:2.0 delay:0.0 options:UIViewAnimationOptionAllowUserInteraction animations:^{ imageView.bounds = endBounds; } completion:^(BOOL finished) { [UIView animateWithDuration:2.0 delay:0.5 options:UIViewAnimationOptionAllowUserInteraction animations:^{ imageView.bounds = startBounds; } completion:^(BOOL finished) { [imageView removeFromSuperview]; }]; }]; Zusätzlich habe ich noch:

Stoppen Sie eine UIView-Animation mit automatischer Reverse / unendlicher Wiederholung mit einem BOOL / Completion-Block

Anzahl der Antworten 4 Antworten
Ich bin einrichten die folgenden UIView animateWithDuration: Methode, mit der Absicht, die Einstellung meiner animationOn BOOL an anderer Stelle im Programm zu stornieren, die unendliche geloopt wiederholen. Ich hatte den Eindruck, dass die completion block aufgerufen werden