So animieren Sie removeFromSuperview

Ich habe das Erscheinungsbild meiner Unteransicht animiert mit:

CATransition *transition = [CATransition animation];
transition.duration = 0.3;
transition.type = kCATransitionReveal;
[webView.layer addAnimation:transition forKey:nil];

[self.view addSubview:webView];

Aber jetzt möchte ich meine subView entfernen. Wie kann ich dazu eine Animation hinzufügen? Wie andere CATransition? Wann soll das hinzugefügt werden? Vor oder nach addSubview?

Antworten auf die Frage(1)

Ihre Antwort auf die Frage