How can I cancel and animation started with transitionFromView:toView:duration:options:completion? Actually what I want, is to avoid calling the completation block if animation was cancelled, just because thatblock transitates a state machine.
I guess is possible to cancel the animation because here: https://developer.apple.com/library/ios/#documentation/uikit/reference/uiview_class/uiview/uiview.html I read this: completion A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called.
Therfore, how can I cancel the animation? Thanks a lot.