我用下面代码来调用一个方法,当动画停止的时候- [UIView beginAnimations:@"swipe" context:NULL];
- [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
- [UIView setAnimationDelegate:self];
- [UIView setAnimationDidStopSelector:@selector(transitionDidStop:finished:context:)];
- [UIView setAnimationDuration:0.3f];
- //My Animation
- [UIView commitAnimations];
复制代码 然后这是 transitionDidStop 方法的签名- - (void)transitionDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context
复制代码 但是我发现这个方法从来不被调用甚至在转换结束后,为什么? |
|