Это очень просто.Вы должны определить метод как
-(void)animationDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context {
//do smth
}
Затем просто позвоните
[UIView beginAnimations: nil context: nil];
[UIView setAnimationDelegate: self]; //or some other object that has necessary method
[UIView setAnimationDidStopSelector: @selector(animationDidStop:finished:context:)];
Вы можете опубликовать представление, которое хотите удалить.Для этого вы должны сделать это:
[UIView beginAnimations: nil context: someView];
и затем добавить в ваш обратный вызов:
-(void)animationDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context {
[(UIView*)context removeFromSuperView];
}