Als Nebenwirkung, können Sie auch die gleiche Art von einem Rückruf für eine UIView Animation durch Ihren Anruf Einwickeln zu drehen ein UIView in dem folgenden Codeblock
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5f];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(rotationAnimationHasFinished:finished:context:)];
// Rotate the view here
[UIView commitAnimations];
und dann einem Delegatmethode
- (void)rotationAnimationHasFinished:(NSString *)animationID finished:(BOOL)finished context:(void *)context;
{
// Handle the completion of the animation
}
definierte innerhalb Ihres Delegaten, der nach Abschluss der Animation alles tun wird, was Sie brauchen.